diff --git a/backend/src/data/Phisherman.ts b/backend/src/data/Phisherman.ts index 5f95f347..9ab1ef00 100644 --- a/backend/src/data/Phisherman.ts +++ b/backend/src/data/Phisherman.ts @@ -147,7 +147,7 @@ export async function getPhishermanDomainInfo(domain: string): Promise { + let promise = (async () => { if (memoryCache.has(domain)) { return memoryCache.get(domain)!.info; } @@ -181,7 +181,7 @@ export async function getPhishermanDomainInfo(domain: string): Promise { + promise = promise.finally(() => { pendingDomainInfoChecks.delete(domain); }); pendingDomainInfoChecks.set(domain, promise);