@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.
- package/driver/mongo/rest.ts +1 -1
- package/package.json +1 -1
package/driver/mongo/rest.ts
CHANGED
|
@@ -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({
|