mirror of
https://github.com/zadam/trilium.git
synced 2025-02-02 04:18:13 +08:00
camel case for reddit labels and run values
This commit is contained in:
parent
abfc64af95
commit
cf7a336ac2
5 changed files with 9 additions and 3 deletions
4
db/migrations/0084__camelCase_reddit_ids.sql
Normal file
4
db/migrations/0084__camelCase_reddit_ids.sql
Normal file
|
@ -0,0 +1,4 @@
|
|||
UPDATE labels SET name = 'redditId' WHERE name = 'reddit_id';
|
||||
UPDATE labels SET name = 'redditKind' WHERE name = 'reddit_kind';
|
||||
UPDATE labels SET name = 'redditCreatedUtc' WHERE name = 'reddit_created_utc';
|
||||
UPDATE labels SET name = 'redditDateNote' WHERE name = 'reddit_date_note';
|
2
db/migrations/0085__camelCase_run_values.sql
Normal file
2
db/migrations/0085__camelCase_run_values.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
UPDATE labels SET name = 'frontendStartup' WHERE name = 'frontend_startup';
|
||||
UPDATE labels SET name = 'backendStartup' WHERE name = 'backend_startup';
|
|
@ -19,7 +19,7 @@ async function run(req) {
|
|||
}
|
||||
|
||||
async function getStartupBundles(req) {
|
||||
const notes = await labelService.getNotesWithLabel("run", "frontend_startup");
|
||||
const notes = await labelService.getNotesWithLabel("run", "frontendStartup");
|
||||
|
||||
const bundles = [];
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
const build = require('./build');
|
||||
const packageJson = require('../../package');
|
||||
|
||||
const APP_DB_VERSION = 83;
|
||||
const APP_DB_VERSION = 85;
|
||||
|
||||
module.exports = {
|
||||
app_version: packageJson.version,
|
||||
|
|
|
@ -19,7 +19,7 @@ async function runNotesWithLabel(runAttrValue) {
|
|||
}
|
||||
}
|
||||
|
||||
setTimeout(() => cls.wrap(() => runNotesWithLabel('backend_startup')), 10 * 1000);
|
||||
setTimeout(() => cls.wrap(() => runNotesWithLabel('backendStartup')), 10 * 1000);
|
||||
|
||||
setInterval(() => cls.wrap(() => runNotesWithLabel('hourly')), 3600 * 1000);
|
||||
|
||||
|
|
Loading…
Reference in a new issue