mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 02:05:53 +01:00
frontend attribute cache refactoring WIP
This commit is contained in:
@@ -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
|
||||
};
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user