mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 04:25:03 +02:00
UBERF-9429: Provide workspace ids to storage adapters (#7956)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
@@ -20,7 +20,6 @@ import core, {
|
||||
MeasureContext,
|
||||
Ref,
|
||||
TxOperations,
|
||||
type WorkspaceDataId,
|
||||
generateId,
|
||||
makeDocCollabId,
|
||||
systemAccountUuid,
|
||||
@@ -273,14 +272,12 @@ export async function processImages (
|
||||
|
||||
// upload
|
||||
const uuid = generateId()
|
||||
await storageAdapter.put(
|
||||
ctx,
|
||||
workspaceDataId ?? (workspaceId as unknown as WorkspaceDataId),
|
||||
uuid,
|
||||
fileContents,
|
||||
mimeType,
|
||||
fileSize
|
||||
)
|
||||
const wsIds = {
|
||||
uuid: workspaceId,
|
||||
dataId: workspaceDataId,
|
||||
url: ''
|
||||
}
|
||||
await storageAdapter.put(ctx, wsIds, uuid, fileContents, mimeType, fileSize)
|
||||
|
||||
// attachment
|
||||
const attachmentId: Ref<Attachment> = generateId()
|
||||
|
||||
Reference in New Issue
Block a user