mirror of
https://github.com/zadam/trilium.git
synced 2025-12-23 08:39:57 +01:00
backup is now triggered after start of the app and with timer
This commit is contained in:
@@ -4,12 +4,9 @@ const express = require('express');
|
||||
const router = express.Router();
|
||||
const sql = require('../../services/sql');
|
||||
const utils = require('../../services/utils');
|
||||
const backup = require('../../services/backup');
|
||||
const auth = require('../../services/auth');
|
||||
|
||||
router.get('/', auth.checkApiAuth, async (req, res, next) => {
|
||||
await backup.regularBackup();
|
||||
|
||||
const notes = await sql.getResults("select "
|
||||
+ "notes_tree.*, "
|
||||
+ "COALESCE(clone.note_title, notes.note_title) as note_title, "
|
||||
|
||||
Reference in New Issue
Block a user