frontend attribute cache refactoring WIP

This commit is contained in:
zadam
2020-01-25 13:27:23 +01:00
parent 60c908cd63
commit 7cad386a56
3 changed files with 140 additions and 30 deletions

View File

@@ -157,12 +157,6 @@ async function deleteRelation(req) {
}
}
async function getTargetRelations(req) {
const note = await repository.getNote(req.params.noteId);
return await note.getTargetRelations();
}
module.exports = {
updateNoteAttributes,
updateNoteAttribute,
@@ -171,6 +165,5 @@ module.exports = {
getValuesForAttribute,
getEffectiveNoteAttributes,
createRelation,
deleteRelation,
getTargetRelations
deleteRelation
};

View File

@@ -168,7 +168,6 @@ function register(app) {
apiRoute(DELETE, '/api/notes/:noteId/attributes/:attributeId', attributesRoute.deleteNoteAttribute);
apiRoute(GET, '/api/attributes/names', attributesRoute.getAttributeNames);
apiRoute(GET, '/api/attributes/values/:attributeName', attributesRoute.getValuesForAttribute);
apiRoute(GET, '/api/notes/:noteId/target-relations', attributesRoute.getTargetRelations);
apiRoute(POST, '/api/notes/:noteId/link-map', linkMapRoute.getLinkMap);