camel case for reddit labels and run values

This commit is contained in:
azivner 2018-04-04 22:29:11 -04:00
parent abfc64af95
commit cf7a336ac2
5 changed files with 9 additions and 3 deletions

View 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';

View file

@ -0,0 +1,2 @@
UPDATE labels SET name = 'frontendStartup' WHERE name = 'frontend_startup';
UPDATE labels SET name = 'backendStartup' WHERE name = 'backend_startup';

View file

@ -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 = [];

View file

@ -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,

View file

@ -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);