fixes for relation handling + visual design restyled into gray colors

This commit is contained in:
azivner
2018-10-30 10:36:19 +01:00
parent a19af8a61d
commit 2a14ea8d0c
5 changed files with 53 additions and 54 deletions

View File

@@ -111,6 +111,7 @@ async function getRelationMap(req) {
// FIXME: this actually doesn't take into account inherited relations! But maybe it is better this way?
resp.relations = (await repository.getEntities(`SELECT * FROM attributes WHERE isDeleted = 0 AND type = 'relation' AND noteId IN (${questionMarks})`, noteIds))
.map(relation => { return {
attributeId: relation.attributeId,
sourceNoteId: relation.noteId,
targetNoteId: relation.value,
name: relation.name