@dnax/core 0.18.6 → 0.18.7
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 +2 -2
- package/package.json +1 -1
package/driver/mongo/rest.ts
CHANGED
|
@@ -311,7 +311,7 @@ class useRest {
|
|
|
311
311
|
let result = await col?.customApi?.insertOne({
|
|
312
312
|
io: Cfg.io,
|
|
313
313
|
session: sessionStorage(),
|
|
314
|
-
data: data,
|
|
314
|
+
data: toJson(data),
|
|
315
315
|
rest: new useRest({
|
|
316
316
|
useHook: false,
|
|
317
317
|
tenant_id: this.#tenant_id,
|
|
@@ -433,7 +433,7 @@ class useRest {
|
|
|
433
433
|
let result = await col?.customApi?.insertMany({
|
|
434
434
|
io: Cfg.io,
|
|
435
435
|
session: sessionStorage(),
|
|
436
|
-
data: data,
|
|
436
|
+
data: toJson(data),
|
|
437
437
|
rest: new useRest({
|
|
438
438
|
useHook: false,
|
|
439
439
|
tenant_id: this.#tenant_id,
|