diff --git a/packages/nocodb/src/lib/services/sync/index.ts b/packages/nocodb/src/lib/services/sync/index.ts index 1c1f17b177..cc27bdd9a7 100644 --- a/packages/nocodb/src/lib/services/sync/index.ts +++ b/packages/nocodb/src/lib/services/sync/index.ts @@ -15,10 +15,9 @@ export async function syncCreate(param: { projectId: string; baseId?: string; userId: string; - // todo: define type syncPayload: Partial; }) { - T.emit('evt', { evt_type: 'webhooks:created' }); + T.emit('evt', { evt_type: 'syncSource:created' }); const project = await Project.getWithInfo(param.projectId); const sync = await SyncSource.insert({ @@ -31,7 +30,7 @@ export async function syncCreate(param: { } export async function syncDelete(param: { syncId: string }) { - T.emit('evt', { evt_type: 'webhooks:deleted' }); + T.emit('evt', { evt_type: 'syncSource:deleted' }); return await SyncSource.delete(param.syncId); } @@ -39,7 +38,7 @@ export async function syncUpdate(param: { syncId: string; syncPayload: Partial; }) { - T.emit('evt', { evt_type: 'webhooks:updated' }); + T.emit('evt', { evt_type: 'syncSource:updated' }); return await SyncSource.update(param.syncId, param.syncPayload); }