mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 01:05:49 +01:00
image upload fixes + some API changes
This commit is contained in:
@@ -62,7 +62,8 @@ async function updateEntity(entity) {
|
||||
delete clone.isOwned;
|
||||
|
||||
for (const key in clone) {
|
||||
if (clone[key] !== null && typeof clone[key] === 'object') {
|
||||
// !isBuffer is for images and attachments
|
||||
if (clone[key] !== null && typeof clone[key] === 'object' && !Buffer.isBuffer(clone[key])) {
|
||||
clone[key] = JSON.stringify(clone[key]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user