mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
feat(react/settings): port backup DB list
This commit is contained in:
@@ -9,11 +9,11 @@ import syncMutexService from "./sync_mutex.js";
|
||||
import cls from "./cls.js";
|
||||
import sql from "./sql.js";
|
||||
import path from "path";
|
||||
import type { OptionNames } from "@triliumnext/commons";
|
||||
import type { DatabaseBackup, OptionNames } from "@triliumnext/commons";
|
||||
|
||||
type BackupType = "daily" | "weekly" | "monthly";
|
||||
|
||||
function getExistingBackups() {
|
||||
function getExistingBackups(): DatabaseBackup[] {
|
||||
if (!fs.existsSync(dataDir.BACKUP_DIR)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user