@webtypen/webframez-core 0.2.36 → 0.2.37
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.
|
@@ -161,7 +161,7 @@ class DataBuilder {
|
|
|
161
161
|
const check = yield db
|
|
162
162
|
.collection(typeof field.unique.collection === "string" && field.unique.collection.trim() !== ""
|
|
163
163
|
? field.unique.collection
|
|
164
|
-
: type.collection)
|
|
164
|
+
: type.schema.collection)
|
|
165
165
|
.aggregate([
|
|
166
166
|
{ $match: match },
|
|
167
167
|
...(typeof field.unique.aggregation === "function"
|
package/package.json
CHANGED
|
@@ -212,7 +212,7 @@ export class DataBuilder {
|
|
|
212
212
|
.collection(
|
|
213
213
|
typeof field.unique.collection === "string" && field.unique.collection.trim() !== ""
|
|
214
214
|
? field.unique.collection
|
|
215
|
-
: type.collection
|
|
215
|
+
: type.schema.collection
|
|
216
216
|
)
|
|
217
217
|
.aggregate([
|
|
218
218
|
{ $match: match },
|