mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-26 04:17:15 +03:00
Fix update event webhook triggering (#7814)
This commit is contained in:
parent
f6c094a56f
commit
0c24001e23
@ -361,19 +361,21 @@ export class GraphqlQueryRunnerService {
|
||||
authContext.workspace.id,
|
||||
);
|
||||
|
||||
const resultWithGettersArray = Array.isArray(resultWithGetters)
|
||||
? resultWithGetters
|
||||
: [resultWithGetters];
|
||||
|
||||
await this.workspaceQueryHookService.executePostQueryHooks(
|
||||
authContext,
|
||||
objectMetadataItem.nameSingular,
|
||||
operationName,
|
||||
Array.isArray(resultWithGetters)
|
||||
? resultWithGetters
|
||||
: [resultWithGetters],
|
||||
resultWithGettersArray,
|
||||
);
|
||||
|
||||
const jobOperation = this.operationNameToJobOperation(operationName);
|
||||
|
||||
if (jobOperation) {
|
||||
await this.triggerWebhooks(resultWithGetters, jobOperation, options);
|
||||
await this.triggerWebhooks(resultWithGettersArray, jobOperation, options);
|
||||
}
|
||||
|
||||
return resultWithGetters;
|
||||
|
Loading…
Reference in New Issue
Block a user