Skip to content

Commit

Permalink
chore(server): separate bucket creation and bucket policy creation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
HUAHUAI23 committed Jan 22, 2024
1 parent a8bd80e commit 457b710
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/src/storage/bucket-task.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ export class BucketTaskService {
}

this.logger.debug('minio bucket created:', doc.name)
} else {
this.logger.debug('minio bucket exists:', doc.name)
this.logger.debug('update bucket policy:', doc.name)
await this.minioService.updateBucketPolicy(region, doc.name, doc.policy)
}

// create bucket domain if not exists
Expand Down

0 comments on commit 457b710

Please sign in to comment.