MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / eventNewIntegration

Function eventNewIntegration

apps/web/services/events/eventNewIntegration.ts:8–19  ·  view source on GitHub ↗
(event: NewMessageEvent)

Source from the content-addressed store, hash-verified

6};
7
8export async function eventNewIntegration(event: NewMessageEvent) {
9 const syncJob: SyncJobType = {
10 account_id: event.accountId,
11 };
12
13 const promises: Promise<any>[] = [
14 // it should dispatch messages to our queue system
15 createSyncJob(syncJob),
16 ];
17
18 await Promise.allSettled(promises);
19}

Callers 1

accounts.tsFile · 0.90

Calls 1

createSyncJobFunction · 0.90

Tested by

no test coverage detected