({
accountId,
status,
accountName,
homeUrl,
communityUrl,
pathDomain,
}: {
accountId: string;
status: SyncStatus;
accountName?: string | null;
homeUrl?: string | null;
communityUrl?: string | null;
pathDomain: string | null;
})
| 18 | } |
| 19 | |
| 20 | export 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 | |
| 53 | async function slackNotification({ |
| 54 | status, |
no test coverage detected