From 0b478c43bcfb9e9c3a779d9f070810ea06ca0aa7 Mon Sep 17 00:00:00 2001 From: Shailesh Patil <53746241+mineme0110@users.noreply.github.com> Date: Tue, 22 Aug 2023 14:36:26 +0100 Subject: [PATCH] fix: mongodb init script updated infrastructure mongodb yaml (#94) fix: mongodb init script Signed-off-by: Shailesh Patil Signed-off-by: Shailesh Patil <53746241+mineme0110@users.noreply.github.com> Signed-off-by: Shailesh Patil --- infrastructure/charts/mediator/templates/mongodb.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infrastructure/charts/mediator/templates/mongodb.yaml b/infrastructure/charts/mediator/templates/mongodb.yaml index a88d0957..4d25cf28 100644 --- a/infrastructure/charts/mediator/templates/mongodb.yaml +++ b/infrastructure/charts/mediator/templates/mongodb.yaml @@ -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