refactor: refactor future event list
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user