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

Function updateAndNotifySyncStatus

apps/web/services/accounts/sync.ts:20–51  ·  view source on GitHub ↗
({
  accountId,
  status,
  accountName,
  homeUrl,
  communityUrl,
  pathDomain,
}: {
  accountId: string;
  status: SyncStatus;
  accountName?: string | null;
  homeUrl?: string | null;
  communityUrl?: string | null;
  pathDomain: string | null;
})

Source from the content-addressed store, hash-verified

18}
19
20export async function updateAndNotifySyncStatus({
21 accountId,
22 status,
23 accountName,
24 homeUrl,
25 communityUrl,
26 pathDomain,
27}: {
28 accountId: string;
29 status: SyncStatus;
30 accountName?: string | null;
31 homeUrl?: string | null;
32 communityUrl?: string | null;
33 pathDomain: string | null;
34}) {
35 await updateAccountSyncStatus(accountId, status);
36
37 await slackNotification({
38 status,
39 accountId,
40 accountName: accountName || '',
41 homeUrl: homeUrl || '',
42 communityUrl: communityUrl || '',
43 pathDomain,
44 });
45
46 await syncEmail({
47 status,
48 accountId,
49 pathDomain,
50 });
51}
52
53async function slackNotification({
54 status,

Callers 3

discordSyncFunction · 0.90
slackSyncWithFilesFunction · 0.90
slackSyncFunction · 0.90

Calls 3

updateAccountSyncStatusFunction · 0.90
slackNotificationFunction · 0.85
syncEmailFunction · 0.85

Tested by

no test coverage detected