Skip to content

Commit

Permalink
Merge pull request #11 from jembi/fx-reg-from-console
Browse files Browse the repository at this point in the history
fx: bug when registering new buckets from openhim-console
  • Loading branch information
drizzentic authored Dec 10, 2024
2 parents 3159faa + 760aed9 commit 4b29f8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ app.listen(getConfig().port, async () => {
buckets.length === 0 && logger.warn('No buckets specified in the configuration');

for await (const { bucket, region } of buckets) {
await ensureBucketExists(bucket, region);
await ensureBucketExists(bucket, region, true);
}

createMinioBucketListeners(buckets.map((bucket) => bucket.bucket));
Expand Down
2 changes: 1 addition & 1 deletion src/openhim/openhim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const setupMediator = async () => {
const buckets = config.minio_buckets_registry as Bucket[];

for await (const { bucket, region } of buckets) {
await ensureBucketExists(bucket, region);
await ensureBucketExists(bucket, region, true);
}

createMinioBucketListeners(buckets.map((bucket) => bucket.bucket));
Expand Down

0 comments on commit 4b29f8f

Please sign in to comment.