ysdsd
All checks were successful
Deploy / deploy-staging (push) Successful in 6s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-04-29 02:21:22 +02:00
parent a0f19ff6b4
commit 4ead35047a
7 changed files with 180 additions and 4 deletions

View File

@@ -251,6 +251,10 @@ $mm->registerFunction($moduleName, 'snapshot', static function (?string $baseCur
return module_fn('fx-rates', 'service')->snapshot($baseCurrency, $at, $symbols, $windowMinutes);
});
$mm->registerFunction($moduleName, 'recent_fetches', static function (int $limit = 20): array {
return module_fn('fx-rates', 'service')->recentFetches($limit);
});
$mm->registerFunction($moduleName, 'scheduled_refresh', static function (array $context = []): array {
$result = module_fn('fx-rates', 'service')->runScheduledRefresh($context);
if (function_exists('module_debug_push')) {