Let automations fire on more CRM events and open the studio from the main nav.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-09 21:43:17 +03:30
co-authored by Cursor
parent 51684daa61
commit f1aba1b386
20 changed files with 419 additions and 49 deletions
+12
View File
@@ -228,6 +228,18 @@ export class TicketsService {
});
}
await this.automations.runTrigger('ticket_created', {
organizationId: actor.organizationId,
entityType: 'ticket',
entityId: row.id,
title: row.subject,
personId: row.personId,
companyId: row.companyId,
dealId: row.dealId,
assigneeId: row.assigneeId,
ownerId: row.assigneeId,
});
return this.toDto(row);
}