fix: move updating the contact to contacts controller

This commit is contained in:
Nik Lampe
2024-09-09 16:44:58 +02:00
parent 3f70be95dd
commit 7c8d3bb050
2 changed files with 4 additions and 11 deletions
@@ -71,13 +71,6 @@ export class ActionService {
const triggers = await ContactService.triggers(contact.id);
// Refetch the contact, as it may have subscribed now
contact = await prisma.contact.findUniqueOrThrow({
where: {
id: contact.id,
},
});
for (const action of actions) {
const hasTriggeredAction = !!triggers.find((t) => t.actionId === action.id);