Skip to content

Commit 00bfcc8

Browse files
committed
Amend indexing script
1 parent ec01298 commit 00bfcc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: server/src/indexing/borrowed-books-index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ console.log('\n-----------------------------\n');
3434
console.log('AFTER creating the index\n');
3535
await explainBorrowedBooksQuery();
3636

37-
await collections?.issueDetails?.dropIndex('user._id_1_returnedDate_1_borrowDate_1');
37+
await collections?.issueDetails?.dropIndexes();
3838
await client.close();
3939
process.exit();
4040

0 commit comments

Comments
 (0)