mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
smaller refactorings continued
This commit is contained in:
@@ -37,6 +37,10 @@ async function getImage(imageId) {
|
||||
return await getEntity("SELECT * FROM images WHERE imageId = ?", [imageId]);
|
||||
}
|
||||
|
||||
async function getLabel(labelId) {
|
||||
return await getEntity("SELECT * FROM labels WHERE labelId = ?", [labelId]);
|
||||
}
|
||||
|
||||
async function updateEntity(entity) {
|
||||
if (entity.beforeSaving) {
|
||||
entity.beforeSaving();
|
||||
@@ -59,6 +63,7 @@ module.exports = {
|
||||
getNote,
|
||||
getBranch,
|
||||
getImage,
|
||||
getLabel,
|
||||
updateEntity,
|
||||
setEntityConstructor
|
||||
};
|
||||
Reference in New Issue
Block a user