dzql 0.5.19 → 0.5.21

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dzql",
3
- "version": "0.5.19",
3
+ "version": "0.5.21",
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",
@@ -925,6 +925,7 @@ BEGIN
925
925
 
926
926
 
927
927
  -- Create event for the delete operation
928
+ -- Include l_record as data so _affected_documents can resolve which subscriptions to update
928
929
  INSERT INTO dzql.events (
929
930
  table_name,
930
931
  op,
@@ -939,7 +940,7 @@ BEGIN
939
940
  SELECT jsonb_object_agg(col, l_record ->> col)
940
941
  FROM unnest(l_pk_cols) AS col
941
942
  ),
942
- NULL,
943
+ l_record,
943
944
  p_user_id,
944
945
  dzql.resolve_notification_paths(p_entity, l_record)
945
946
  );