Skip to content

Commit

Permalink
3855 - Add transaction for public.file row removal (#4232)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorja authored Jan 20, 2025
1 parent b75d8c4 commit 40a776c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/controller/cycleData/repository/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const remove = async (props: Props): Promise<void> => {

return DB.tx(async (t: BaseProtocol) => {
const target = await RepositoryRepository.remove(props, t)
await FileRepository.remove({ uuid: target.fileUuid })
await FileRepository.remove({ uuid: target.fileUuid }, t)
await FileStorage.removeFile({ key: target.fileUuid })

const message = ActivityLogMessage.repositoryItemDelete
Expand Down

0 comments on commit 40a776c

Please sign in to comment.