mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
saving image
This commit is contained in:
@@ -480,13 +480,6 @@ class Note extends Entity {
|
||||
return await repository.getEntities("SELECT * FROM note_revisions WHERE noteId = ?", [this.noteId]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<NoteImage[]>}
|
||||
*/
|
||||
async getNoteImages() {
|
||||
return await repository.getEntities("SELECT * FROM note_images WHERE noteId = ? AND isDeleted = 0", [this.noteId]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<Link[]>}
|
||||
*/
|
||||
@@ -494,6 +487,15 @@ class Note extends Entity {
|
||||
return await repository.getEntities("SELECT * FROM links WHERE noteId = ? 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[]>}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user