dzql 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/server/db.js +1 -1
package/package.json
CHANGED
package/src/server/db.js
CHANGED
|
@@ -207,7 +207,7 @@ export async function callDZQLOperation(operation, entity, args, userId) {
|
|
|
207
207
|
return result[0].result;
|
|
208
208
|
} else if (operation === 'save') {
|
|
209
209
|
const result = await sql.unsafe(`
|
|
210
|
-
SELECT ${compiledFunctionName}($1::int, $2::jsonb
|
|
210
|
+
SELECT ${compiledFunctionName}($1::int, $2::jsonb) as result
|
|
211
211
|
`, [userId, args]);
|
|
212
212
|
return result[0].result;
|
|
213
213
|
} else if (operation === 'delete') {
|