Skip to content

Commit

Permalink
fx: bug when registering new buckets from openhim-console
Browse files Browse the repository at this point in the history
  • Loading branch information
brett-onions committed Dec 9, 2024
1 parent 3159faa commit 760aed9
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 760aed9

Please sign in to comment.