mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 13:17:45 +02:00
UBERF-6161: Storage configuration (#5109)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -24,7 +24,7 @@ import type { TriggerControl } from '@hcengineering/server-core'
|
||||
*/
|
||||
export async function OnAttachmentDelete (
|
||||
tx: Tx,
|
||||
{ findAll, hierarchy, fulltextFx, storageFx, removedMap }: TriggerControl
|
||||
{ findAll, hierarchy, fulltextFx, storageFx, removedMap, ctx }: TriggerControl
|
||||
): Promise<Tx[]> {
|
||||
const rmTx = TxProcessor.extractTx(tx) as TxRemoveDoc<Attachment>
|
||||
|
||||
@@ -39,7 +39,7 @@ export async function OnAttachmentDelete (
|
||||
})
|
||||
|
||||
storageFx(async (adapter, bucket) => {
|
||||
await adapter.remove(bucket, [attach.file])
|
||||
await adapter.remove(ctx, bucket, [attach.file])
|
||||
})
|
||||
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user