8130 creating a new company in twenty doesnt activate on zapier (#8166)

- fix webhook.operation format change from august 2024 not spread in
twenty-zapier
- added a comment so it does not happen again
- add a fix for the new webhook.operations column that would produce
another issue
This commit is contained in:
martmull
2024-10-29 13:56:01 +01:00
committed by GitHub
parent 77a4aa2649
commit 8bb07c4a4f
4 changed files with 51 additions and 16 deletions

View File

@ -42,6 +42,9 @@ export class CallWebhookJobsJob {
@Process(CallWebhookJobsJob.name)
async handle(data: CallWebhookJobsJobData): Promise<void> {
// If you change that function, double check it does not break Zapier
// trigger in packages/twenty-zapier/src/triggers/trigger_record.ts
const webhookRepository =
await this.twentyORMGlobalManager.getRepositoryForWorkspace<WebhookWorkspaceEntity>(
data.workspaceId,