feat(laws,opendata): add local law storage and migrate OpenData persistence to smartdb-backed local storage

This commit is contained in:
2026-04-17 11:51:02 +00:00
parent 79e74a34ed
commit 73801f785a
40 changed files with 8514 additions and 7266 deletions
+3 -3
View File
@@ -86,7 +86,7 @@ export class YahooFinanceProvider implements IStockProvider {
return stockPrice;
} catch (error) {
console.error(`Failed to fetch price for ${request.ticker}:`, error);
throw new Error(`Yahoo Finance: Failed to fetch price for ${request.ticker}: ${error.message}`);
throw new Error(`Yahoo Finance: Failed to fetch price for ${request.ticker}: ${plugins.getErrorMessage(error)}`);
}
}
@@ -145,7 +145,7 @@ export class YahooFinanceProvider implements IStockProvider {
return prices;
} catch (error) {
console.error(`Failed to fetch batch prices:`, error);
throw new Error(`Yahoo Finance: Failed to fetch batch prices: ${error.message}`);
throw new Error(`Yahoo Finance: Failed to fetch batch prices: ${plugins.getErrorMessage(error)}`);
}
}
@@ -191,4 +191,4 @@ export class YahooFinanceProvider implements IStockProvider {
return timeDiff > 3600 ? 'CLOSED' : 'REGULAR';
}
}
}
}