Skip to content

Commit

Permalink
fix(mongo-query-repo): remove default id unique index
Browse files Browse the repository at this point in the history
  • Loading branch information
gtoselli committed Feb 19, 2024
1 parent c13d8a7 commit 783d568
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/repo/mongo-query-repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export abstract class MongoQueryRepo<RM extends Document> implements IInit {
}

async init() {
await this.collection.createIndex({ id: 1 }, { unique: true });
if (!isEmpty(this.indexes)) {
for (const { indexSpec, options } of this.indexes) {
await this.collection.createIndex(indexSpec, options || {});
Expand Down

0 comments on commit 783d568

Please sign in to comment.