@dnax/core 0.1.18 → 0.1.19
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/package.json +1 -1
package/driver/mongo/rest.ts
CHANGED
|
@@ -85,8 +85,8 @@ class useRest {
|
|
|
85
85
|
let control = {
|
|
86
86
|
error: null,
|
|
87
87
|
value: null,
|
|
88
|
-
waring: null
|
|
89
|
-
}
|
|
88
|
+
waring: null,
|
|
89
|
+
};
|
|
90
90
|
|
|
91
91
|
/* let issue = err?.issues[0] || {};
|
|
92
92
|
let msg = `Field : ${issue?.path[0]?.key} - ${issue?.message}`;
|
|
@@ -1165,7 +1165,7 @@ class useRest {
|
|
|
1165
1165
|
if (Array.isArray(ids)) {
|
|
1166
1166
|
await this.#tenant.database.db?.collection(collection).deleteMany(
|
|
1167
1167
|
{
|
|
1168
|
-
_id: { $in: formatData(ids) },
|
|
1168
|
+
_id: { $in: formatData(ids.map((d) => d?._id || d)) },
|
|
1169
1169
|
},
|
|
1170
1170
|
{
|
|
1171
1171
|
session: this.#session ? this.#session : undefined,
|