@dnax/core 0.24.1 → 0.24.2

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.
@@ -926,7 +926,6 @@ class useRest {
926
926
  let allFieldKeys = getKeyFields(col);
927
927
 
928
928
  if (!col) return fn.error(`Collection ${collection} not found`, 404);
929
- update = toJson(update);
930
929
 
931
930
  if (col?.hooks?.beforeOperation && useHook) {
932
931
  await col.hooks.beforeOperation({
@@ -945,6 +944,7 @@ class useRest {
945
944
  }),
946
945
  });
947
946
  }
947
+ update = toJson(update);
948
948
 
949
949
  if (col?.hooks?.beforeUpdate && useHook) {
950
950
  await col.hooks.beforeUpdate({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.24.1",
3
+ "version": "0.24.2",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {