diff --git a/src/storage/minio.ts b/src/storage/minio.ts index 4eda94d..bf7dca3 100644 --- a/src/storage/minio.ts +++ b/src/storage/minio.ts @@ -26,7 +26,11 @@ export class Minio implements Storage { } async init(): Promise { - await this.client.bucketExists(this.options.bucket) + const exists = await this.client.bucketExists(this.options.bucket) + if (!exists) { + // @ts-ignore + await this.client.makeBucket(this.options.bucket) + } } async readStream(path: string): Promise {