fix image resizing after save/update/import

This commit is contained in:
zadam
2020-07-28 00:26:47 +02:00
parent c9cbc2db02
commit a7b62b30cb
2 changed files with 27 additions and 19 deletions

View File

@@ -298,7 +298,7 @@ function downloadImages(noteId, content) {
const imageBuffer = Buffer.from(imageBase64, 'base64');
const imageService = require('../services/image');
const {note} = await imageService.saveImage(noteId, imageBuffer, "inline image", true);
const {note} = imageService.saveImage(noteId, imageBuffer, "inline image", true);
content = content.substr(0, match.index)
+ `<img src="api/images/${note.noteId}/${note.title}"`