@dnax/core 0.73.2 → 0.73.3
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 +6 -0
- package/package.json +1 -1
package/driver/mongo/rest.ts
CHANGED
|
@@ -1653,6 +1653,11 @@ class useRest {
|
|
|
1653
1653
|
},
|
|
1654
1654
|
$setOnInsert: {
|
|
1655
1655
|
createdAt: new Date(),
|
|
1656
|
+
...formatData(update?.$setOnInsert || {}, {
|
|
1657
|
+
collection: collection,
|
|
1658
|
+
tenant_id: this.#tenant_id,
|
|
1659
|
+
action: "updateMany",
|
|
1660
|
+
}),
|
|
1656
1661
|
},
|
|
1657
1662
|
},
|
|
1658
1663
|
{
|
|
@@ -1812,6 +1817,7 @@ class useRest {
|
|
|
1812
1817
|
...formatData(update?.$setOnInsert || {}, {
|
|
1813
1818
|
collection: collection,
|
|
1814
1819
|
tenant_id: this.#tenant_id,
|
|
1820
|
+
action: "insertOne",
|
|
1815
1821
|
}),
|
|
1816
1822
|
//updatedAt: new Date(),
|
|
1817
1823
|
createdAt: new Date(),
|