Files
kt-financial-system/apps/backend/utils/telegram-bot-enhanced.ts
你的用户名 b68511b2e2
Some checks failed
Deploy to Production / Build and Test (push) Successful in 10m51s
Deploy to Production / Deploy to Server (push) Failing after 6m41s
feat: migrate backend storage to postgres
2025-11-06 22:01:50 +08:00

22 lines
771 B
TypeScript

import {
getEnabledNotificationConfigs,
notifyTransaction,
testTelegramConfig,
} from './telegram-bot';
export { getEnabledNotificationConfigs, testTelegramConfig };
export async function notifyTransactionEnhanced(
...args: Parameters<typeof notifyTransaction>
) {
await notifyTransaction(...args);
}
export async function retryFailedNotifications(): Promise<void> {
// Retrying logic is not yet implemented for the PostgreSQL data source.
// The SQLite-specific implementation relied on synchronous database access.
// If this functionality becomes necessary, please implement it using the
// telegram_notification_history table with pool-based transactions.
console.warn('[telegram-bot-enhanced] retryFailedNotifications is not implemented.');
}