mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 17:25:52 +01:00
auto init of special notes after startup
This commit is contained in:
@@ -5,6 +5,7 @@ const config = require('./config');
|
||||
const log = require('./log');
|
||||
const sql = require("./sql");
|
||||
const becca = require("../becca/becca");
|
||||
const specialNotesService = require("../services/special_notes");
|
||||
|
||||
function getRunAtHours(note) {
|
||||
try {
|
||||
@@ -55,5 +56,7 @@ sqlInit.dbReady.then(() => {
|
||||
setInterval(cls.wrap(() => runNotesWithLabel('hourly')), 3600 * 1000);
|
||||
|
||||
setInterval(cls.wrap(() => runNotesWithLabel('daily')), 24 * 3600 * 1000);
|
||||
|
||||
setTimeout(cls.wrap(() => specialNotesService.createMissingSpecialNotes()), 10 * 1000);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user