feat: Add check interval and check_at update

- Added a "Check Interval" field to the SSL certificate create/edit forms.
- Implemented functionality to update the `check_at` field in Pocketbase with the current time when the "Check" button is clicked.
This commit is contained in:
Tola Leng
2025-06-20 17:17:34 +07:00
parent 11408dcba0
commit 614c10188d
10 changed files with 390 additions and 357 deletions
+5 -2
View File
@@ -1,4 +1,3 @@
export interface SSLCertificate {
id: string;
domain: string;
@@ -19,7 +18,10 @@ export interface SSLCertificate {
last_notified?: string;
created?: string;
updated?: string;
// New fields based on the provided structure
// New fields
check_interval?: number; // Check interval in days
check_at?: string; // Next check time
// Existing fields based on the provided structure
collectionId?: string;
collectionName?: string;
resolved_ip?: string;
@@ -31,4 +33,5 @@ export interface AddSSLCertificateDto {
warning_threshold: number;
expiry_threshold: number;
notification_channel: string;
check_interval?: number; // New field for check interval in days
}