mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 05:07:43 +02:00
UBERF-6180: Fix account issues (#5063)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -152,5 +152,11 @@ export async function createStorageDataAdapter (
|
||||
if (storage === undefined) {
|
||||
throw new Error('minio storage adapter require minio')
|
||||
}
|
||||
// We need to create bucket if it doesn't exist
|
||||
if (storage !== undefined) {
|
||||
if (!(await storage.exists(workspaceId))) {
|
||||
await storage.make(workspaceId)
|
||||
}
|
||||
}
|
||||
return new StorageBlobAdapter(workspaceId, storage)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user