renaming attributes to labels, fixes #79

This commit is contained in:
azivner
2018-03-24 22:02:26 -04:00
parent 4c472ce78b
commit 95bb2cf0bb
40 changed files with 334 additions and 312 deletions

View File

@@ -6,7 +6,7 @@ const auth = require('../services/auth');
const source_id = require('../services/source_id');
const sql = require('../services/sql');
const Repository = require('../services/repository');
const attributes = require('../services/attributes');
const labels = require('../services/labels');
const wrap = require('express-promise-wrap').wrap;
router.get('', auth.checkAuth, wrap(async (req, res, next) => {
@@ -21,7 +21,7 @@ router.get('', auth.checkAuth, wrap(async (req, res, next) => {
async function getAppCss(repository) {
let css = '';
const notes = attributes.getNotesWithAttribute(repository, 'app_css');
const notes = labels.getNotesWithLabel(repository, 'app_css');
for (const note of await notes) {
css += `/* ${note.noteId} */