diff --git a/src/Minio/minio.service.ts b/src/Minio/minio.service.ts index 6abf7a7..0298ac9 100644 --- a/src/Minio/minio.service.ts +++ b/src/Minio/minio.service.ts @@ -139,7 +139,7 @@ export class MinioService { } // get the record url from minio by searching for the file starting with roomId and ending with .mp4 and returning the presigned url async getRoomRecordUrl(roomId: string) { - return new Promise(async (resolve, reject) => { + return await new Promise(async (resolve, reject) => { const stream = this.minioClient.listObjects(this.configService.get('BUCKET_NAME') ?? 'epess', `records/${roomId}`, true) const items: BucketItem[] = []