@sprucelabs/data-stores 31.0.11 → 31.0.12
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.
|
@@ -770,10 +770,10 @@ const databaseAssertUtil = {
|
|
|
770
770
|
return __awaiter(this, void 0, void 0, function* () {
|
|
771
771
|
const db = yield connectToDabatase(connect);
|
|
772
772
|
yield db.syncIndexes(this.collectionName, [
|
|
773
|
-
['
|
|
774
|
-
['
|
|
773
|
+
['target.field1'],
|
|
774
|
+
['target.field2'],
|
|
775
775
|
]);
|
|
776
|
-
yield db.syncUniqueIndexes(this.collectionName, [['
|
|
776
|
+
yield db.syncUniqueIndexes(this.collectionName, [['target.field1']]);
|
|
777
777
|
});
|
|
778
778
|
},
|
|
779
779
|
assertSyncingUniqueIndexesRemovesExtraUniqueIndexes(connect) {
|
|
@@ -703,10 +703,10 @@ const databaseAssertUtil = {
|
|
|
703
703
|
async assertCanHaveUniqueIndexOnFieldThatIsAlreadyInIndex(connect) {
|
|
704
704
|
const db = await connectToDabatase(connect);
|
|
705
705
|
await db.syncIndexes(this.collectionName, [
|
|
706
|
-
['
|
|
707
|
-
['
|
|
706
|
+
['target.field1'],
|
|
707
|
+
['target.field2'],
|
|
708
708
|
]);
|
|
709
|
-
await db.syncUniqueIndexes(this.collectionName, [['
|
|
709
|
+
await db.syncUniqueIndexes(this.collectionName, [['target.field1']]);
|
|
710
710
|
},
|
|
711
711
|
async assertSyncingUniqueIndexesRemovesExtraUniqueIndexes(connect) {
|
|
712
712
|
const db = await connectToDabatase(connect);
|