@rpcbase/server 0.315.0 → 0.316.0

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": "@rpcbase/server",
3
- "version": "0.315.0",
3
+ "version": "0.316.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -16,6 +16,12 @@ const dispatch_queue = (queue, model_name, op, doc, update_description) => {
16
16
  // skip if there's no matching handler
17
17
  if (!Object.keys(tasks).includes(handler_name)) return
18
18
 
19
+
20
+ if (update_description?.updatedFields) {
21
+ update_description.updated_fields = Object.keys(update_description.updatedFields )
22
+ delete update_description.updatedFields
23
+ }
24
+
19
25
  queue.add(handler_name, {doc, update_description}, {
20
26
  jobId: `${op}-${doc._id}`,
21
27
  removeOnComplete: true,