UBERF-6161: Storage configuration (#5109)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-04-02 14:05:16 +07:00
committed by GitHub
parent 5da63b70f4
commit 0803bb4ea2
50 changed files with 1254 additions and 713 deletions
@@ -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 []