added "what links here" widget

This commit is contained in:
zadam
2019-08-19 20:59:40 +02:00
parent c9d0b8cc40
commit 02c9dabcff
7 changed files with 45 additions and 59 deletions

View File

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