6071 return only updated fields of records in zapier update trigger (#8193)
- move webhook triggers into `entity-events-to-db.listener.ts` - refactor event management - add a `@OnDatabaseEvent` decorator to manage database events - add updatedFields in updated events - update openApi webhooks docs - update zapier integration
This commit is contained in:
@ -29,7 +29,7 @@ const meta: Meta<PageDecoratorArgs> = {
|
||||
targetUrl: 'https://example.com/webhook',
|
||||
description: 'A Sample Description',
|
||||
updatedAt: '2021-08-27T12:00:00Z',
|
||||
operation: 'create',
|
||||
operation: 'created',
|
||||
__typename: 'Webhook',
|
||||
},
|
||||
},
|
||||
|
||||
@ -121,9 +121,9 @@ export const SettingsDevelopersWebhooksDetail = () => {
|
||||
|
||||
const actionOptions: SelectOption<string>[] = [
|
||||
{ value: '*', label: 'All Actions', Icon: IconNorthStar },
|
||||
{ value: 'create', label: 'Created', Icon: IconPlus },
|
||||
{ value: 'update', label: 'Updated', Icon: IconRefresh },
|
||||
{ value: 'delete', label: 'Deleted', Icon: IconTrash },
|
||||
{ value: 'created', label: 'Created', Icon: IconPlus },
|
||||
{ value: 'updated', label: 'Updated', Icon: IconRefresh },
|
||||
{ value: 'deleted', label: 'Deleted', Icon: IconTrash },
|
||||
];
|
||||
|
||||
const { updateOneRecord } = useUpdateOneRecord<Webhook>({
|
||||
|
||||
Reference in New Issue
Block a user