WIP of attribute view on click

This commit is contained in:
zadam
2020-06-18 12:52:16 +02:00
parent a04aa6fd36
commit a87e59cecb
6 changed files with 146 additions and 10 deletions

View File

@@ -258,6 +258,14 @@ async function deleteRelation(req) {
}
}
async function getNotesWithAttribute(req) {
const {type, name, value} = req.body;
const notes = await attributeService.getNotesWithAttribute(type, name, value);
return notes.map(note => note.noteId);
}
module.exports = {
updateNoteAttributes,
updateNoteAttributes2,
@@ -267,5 +275,6 @@ module.exports = {
getValuesForAttribute,
getEffectiveNoteAttributes,
createRelation,
deleteRelation
deleteRelation,
getNotesWithAttribute
};