fix: systeme metrics chart
This commit is contained in:
@@ -4,10 +4,9 @@ import {
|
||||
resolveFolderRemoteDir
|
||||
} from "../utils/ssh.ts"
|
||||
|
||||
import {process} from "std-env";
|
||||
import backupOptions from "../config/backup-options.json"
|
||||
|
||||
export const BACKUP_HOUR = process.env.BACKUPS_HOUR
|
||||
export const BACKUP_HOUR = Number(process.env.BACKUPS_HOUR) || 19
|
||||
|
||||
type BackupTarget = {
|
||||
name: string
|
||||
@@ -141,7 +140,7 @@ export default defineEventHandler(async () => {
|
||||
latestBackupAt: null,
|
||||
backupDate: null,
|
||||
expectedBackupDate: expectedDateKey,
|
||||
error: error instanceof Error ? error.message : String(error)
|
||||
error: "Erreur lors de la verification"
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user