separated DB initialization methods into sql_init

This commit is contained in:
azivner
2018-04-02 21:25:20 -04:00
parent 6ab0cea4e3
commit 26e4ad9bf9
11 changed files with 133 additions and 116 deletions

View File

@@ -19,8 +19,8 @@ async function runNotesWithLabel(runAttrValue) {
}
}
setTimeout(cls.wrap(() => runNotesWithLabel('backend_startup')), 10 * 1000);
setTimeout(() => cls.wrap(() => runNotesWithLabel('backend_startup')), 10 * 1000);
setInterval(cls.wrap(() => runNotesWithLabel('hourly')), 3600 * 1000);
setInterval(() => cls.wrap(() => runNotesWithLabel('hourly')), 3600 * 1000);
setInterval(cls.wrap(() => runNotesWithLabel('daily'), 24 * 3600 * 1000));
setInterval(() => cls.wrap(() => runNotesWithLabel('daily'), 24 * 3600 * 1000));