feat(api, web): добавить поддержку уведомлений и журнал уведомлений
Docker / build (push) Has been cancelled
Docker / build (push) Has been cancelled
Добавлены новые функции для отправки уведомлений через Telegram и webhook, включая настройки для интервалов уведомлений и проверки uptime. Реализован журнал уведомлений для отслеживания статуса отправленных сообщений. Обновлены схемы и интерфейсы для поддержки новых полей и функционала. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
2c66d0c0ee
commit
7f91bc3624
28 files changed
+1046
-437
No files matched your search
@@ -123,6 +123,11 @@ export function importJsonSnapshot(data: BackupPayload): void {
|
||||
customFields: customFields != null ? String(customFields) : null,
|
||||
notifyLowBalanceEnabled: s.notifyLowBalanceEnabled ? 1 : 0,
|
||||
notifySyncDigestEnabled: s.notifySyncDigestEnabled ? 1 : 0,
|
||||
notifyVpsDownEnabled: s.notifyVpsDownEnabled ? 1 : 0,
|
||||
webhookUrl: String(s.webhookUrl ?? ''),
|
||||
webhookEnabled: s.webhookEnabled ? 1 : 0,
|
||||
notifyIntervalMinutes: Number(s.notifyIntervalMinutes) || 60,
|
||||
uptimeCheckIntervalMinutes: Number(s.uptimeCheckIntervalMinutes) || 5,
|
||||
})
|
||||
.run()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user