moved instanceName to index.ejs

This commit is contained in:
azivner
2018-04-02 21:34:28 -04:00
parent 26e4ad9bf9
commit 429d3f518e
5 changed files with 10 additions and 9 deletions

View File

@@ -3,11 +3,13 @@
const sourceIdService = require('../services/source_id');
const sql = require('../services/sql');
const labelService = require('../services/labels');
const config = require('../services/config');
async function index(req, res) {
res.render('index', {
sourceId: await sourceIdService.generateSourceId(),
maxSyncIdAtLoad: await sql.getValue("SELECT MAX(id) FROM sync"),
instanceName: config.General ? config.General.instanceName : null,
appCss: await getAppCss()
});
}