MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / normalizeHotmailAccounts

Function normalizeHotmailAccounts

background.js:1248–1258  ·  view source on GitHub ↗
(accounts)

Source from the content-addressed store, hash-verified

1246}
1247
1248function normalizeHotmailAccounts(accounts) {
1249 if (!Array.isArray(accounts)) return [];
1250
1251 const deduped = new Map();
1252 for (const account of accounts) {
1253 const normalized = normalizeHotmailAccount(account);
1254 if (!normalized.email && !normalized.id) continue;
1255 deduped.set(normalized.id, normalized);
1256 }
1257 return [...deduped.values()];
1258}
1259
1260function findHotmailAccount(accounts, accountId) {
1261 return normalizeHotmailAccounts(accounts).find((account) => account.id === accountId) || null;

Callers 10

findHotmailAccountFunction · 0.85
syncHotmailAccountsFunction · 0.85
upsertHotmailAccountFunction · 0.85
deleteHotmailAccountFunction · 0.85
deleteHotmailAccountsFunction · 0.85
patchHotmailAccountFunction · 0.85
setCurrentHotmailAccountFunction · 0.85
handleMessageFunction · 0.85

Calls 1

normalizeHotmailAccountFunction · 0.85

Tested by

no test coverage detected