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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/server/db.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dzql",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "PostgreSQL-powered framework with zero boilerplate CRUD operations and real-time WebSocket synchronization",
5
5
  "type": "module",
6
6
  "main": "src/server/index.js",
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, NULL) as result
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') {