fix: attachments events not recognised by DeliverWebhookTask

This commit is contained in:
Tom Moor
2022-07-01 18:40:32 +02:00
parent b44dc726f3
commit 7ce57c9c83
3 changed files with 24 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ router.post("attachments.create", auth(), async (ctx) => {
name,
},
teamId: user.teamId,
userId: user.id,
actorId: user.id,
ip: ctx.request.ip,
},
{ transaction }
@@ -133,7 +133,7 @@ router.post("attachments.delete", auth(), async (ctx) => {
await Event.create({
name: "attachments.delete",
teamId: user.teamId,
userId: user.id,
actorId: user.id,
ip: ctx.request.ip,
});