@dnax/core 0.4.7 → 0.4.9
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 +3 -3
- package/lib/orama/@types.ts +6 -1
- package/package.json +1 -1
package/driver/mongo/rest.ts
CHANGED
|
@@ -292,7 +292,7 @@ class useRest {
|
|
|
292
292
|
if (col?.hooks?.afterInsert && useHook) {
|
|
293
293
|
await col.hooks.afterInsert({
|
|
294
294
|
sharedData: sharedData,
|
|
295
|
-
data: data,
|
|
295
|
+
data: toJson(data),
|
|
296
296
|
c: this.#c,
|
|
297
297
|
io: Cfg.io,
|
|
298
298
|
driver: "mongodb",
|
|
@@ -355,7 +355,7 @@ class useRest {
|
|
|
355
355
|
if (col?.hooks?.beforeOperation && useHook) {
|
|
356
356
|
await col.hooks.beforeOperation({
|
|
357
357
|
sharedData: sharedData,
|
|
358
|
-
data: data,
|
|
358
|
+
data: toJson(data),
|
|
359
359
|
io: Cfg.io,
|
|
360
360
|
c: this.#c,
|
|
361
361
|
driver: "mongodb",
|
|
@@ -398,7 +398,7 @@ class useRest {
|
|
|
398
398
|
if (col?.hooks?.afterInsert && useHook) {
|
|
399
399
|
await col.hooks.afterInsert({
|
|
400
400
|
sharedData: sharedData,
|
|
401
|
-
data: data,
|
|
401
|
+
data: toJson(data),
|
|
402
402
|
c: this.#c,
|
|
403
403
|
io: Cfg.io,
|
|
404
404
|
driver: "mongodb",
|
package/lib/orama/@types.ts
CHANGED