Skip to content

Commit

Permalink
re-added unique index for test roles
Browse files Browse the repository at this point in the history
  • Loading branch information
avneesh-akto committed Dec 7, 2023
1 parent 9aaa58b commit 77bd8fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void createIndicesIfAbsent() {
}

String[] fieldNames = {TestRoles.NAME};
MCollection.createIndexIfAbsent(getDBName(), getCollName(), fieldNames, true);
instance.getMCollection().createIndex(Indexes.ascending(fieldNames), new IndexOptions().unique(true));
}

public TestRoles createTestRole (String roleName, ObjectId endpointLogicalGroupId, String userName) {
Expand Down

0 comments on commit 77bd8fc

Please sign in to comment.