more cleanup of labels and relations from backend, dropping tables from db

This commit is contained in:
azivner
2018-08-07 13:44:51 +02:00
parent 1c0fd243d1
commit f1240c26bf
8 changed files with 16 additions and 105 deletions

View File

@@ -4,8 +4,6 @@ const Image = require('../entities/image');
const NoteImage = require('../entities/note_image');
const Branch = require('../entities/branch');
const Attribute = require('../entities/attribute');
const Label = require('../entities/label');
const Relation = require('../entities/relation');
const RecentNote = require('../entities/recent_note');
const ApiToken = require('../entities/api_token');
const Option = require('../entities/option');
@@ -17,12 +15,6 @@ function createEntityFromRow(row) {
if (row.attributeId) {
entity = new Attribute(row);
}
else if (row.labelId) {
entity = new Label(row);
}
else if (row.relationId) {
entity = new Relation(row);
}
else if (row.noteRevisionId) {
entity = new NoteRevision(row);
}