mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
becca conversion WIP
This commit is contained in:
@@ -55,7 +55,7 @@ function getImageMimeFromExtension(ext) {
|
||||
function updateImage(noteId, uploadBuffer, originalName) {
|
||||
log.info(`Updating image ${noteId}: ${originalName}`);
|
||||
|
||||
const note = repository.getNote(noteId);
|
||||
const note = becca.getNote(noteId);
|
||||
|
||||
noteRevisionService.createNoteRevision(note);
|
||||
noteRevisionService.protectNoteRevisions(note);
|
||||
@@ -78,7 +78,7 @@ function saveImage(parentNoteId, uploadBuffer, originalName, shrinkImageSwitch)
|
||||
|
||||
const fileName = sanitizeFilename(originalName);
|
||||
|
||||
const parentNote = repository.getNote(parentNoteId);
|
||||
const parentNote = becca.getNote(parentNoteId);
|
||||
|
||||
const {note} = noteService.createNewNote({
|
||||
parentNoteId,
|
||||
|
||||
Reference in New Issue
Block a user