removed link remnants

This commit is contained in:
zadam
2019-08-27 21:24:31 +02:00
parent ca2f14a2d0
commit 242bea236f
15 changed files with 53 additions and 532 deletions

View File

@@ -641,24 +641,6 @@ class Note extends Entity {
name IN ('internal-link', 'image-link', 'relation-map-link')`, [this.noteId]);
}
/**
* Get list of links targetting this note.
*
* @returns {Promise<Link[]>}
*/
async getTargetLinks() {
return await repository.getEntities("SELECT * FROM links WHERE targetNoteId = ? AND isDeleted = 0", [this.noteId]);
}
/**
* Return all links from this note, including deleted ones.
*
* @returns {Promise<Link[]>}
*/
async getLinksWithDeleted() {
return await repository.getEntities("SELECT * FROM links WHERE noteId = ?", [this.noteId]);
}
/**
* @returns {Promise<Branch[]>}
*/