refactor: refactor future event list

This commit is contained in:
2026-08-20 08:23:42 +03:00
parent 5aa9bd395a
commit e0055414d6
8 changed files with 245 additions and 69 deletions
+5 -1
View File
@@ -237,7 +237,11 @@ export class PortfolioService {
) {
const lookup = async (
key: string,
fetch: () => Promise<{ ticker?: string; name?: string; isin?: string } | null>,
fetch: () => Promise<{
ticker?: string;
name?: string;
isin?: string;
} | null>,
) => {
const cached = this.metadata.get(key);
if (cached && Date.now() - cached.storedAt <= metadataForMs)