mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
image sync fixes and 4.0.0 electron
This commit is contained in:
@@ -252,7 +252,10 @@ async function getEntityRow(entityName, entityId) {
|
||||
|
||||
const entity = await sql.getRow(`SELECT * FROM ${entityName} WHERE ${primaryKey} = ?`, [entityId]);
|
||||
|
||||
if (entityName === 'notes' && (entity.type === 'file' || entity.type === 'image')) {
|
||||
if (entityName === 'notes'
|
||||
&& entity.content !== null
|
||||
&& (entity.type === 'file' || entity.type === 'image')) {
|
||||
|
||||
entity.content = entity.content.toString("binary");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user