mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
store images in notes, basic structure
This commit is contained in:
@@ -487,6 +487,13 @@ class Note extends Entity {
|
||||
return await repository.getEntities("SELECT * FROM note_images WHERE noteId = ? AND isDeleted = 0", [this.noteId]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<Link[]>}
|
||||
*/
|
||||
async getLinks() {
|
||||
return await repository.getEntities("SELECT * FROM links WHERE noteId = ? AND isDeleted = 0", [this.noteId]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<Branch[]>}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user