Skip to content

Commit

Permalink
fix: mongodb init script updated infrastructure mongodb yaml (#94)
Browse files Browse the repository at this point in the history
fix: mongodb init script

Signed-off-by: Shailesh Patil <[email protected]>
Signed-off-by: Shailesh Patil <[email protected]>

Signed-off-by: Shailesh Patil <[email protected]>
  • Loading branch information
mineme0110 committed May 1, 2024
1 parent 606b2e7 commit a900d64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infrastructure/charts/mediator/templates/mongodb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ data:
const database = 'mediator';
const collectionDidAccount = 'user.account';
const collectionMessages = 'messages';
const collectionMessagesSend = 'messages.outbound';
use(database);
db.createCollection(collectionDidAccount);
db.createCollection(collectionMessages);
db.createCollection(collectionMessagesSend);
//create index
db.getCollection(collectionDidAccount).createIndex({ 'did': 1 }, { unique: true });
// Only enforce uniqueness on non-empty arrays
Expand Down

0 comments on commit a900d64

Please sign in to comment.