mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 06:45:49 +01:00
change the way frontend detects content change which works even if no new blob is created, fixes #4434
This commit is contained in:
@@ -147,8 +147,6 @@ function fillInAdditionalProperties(entityChange) {
|
||||
if (!entityChange.entity) {
|
||||
entityChange.entity = sql.getRow(`SELECT * FROM options WHERE name = ?`, [entityChange.entityId]);
|
||||
}
|
||||
} else if (entityChange.entityName === 'blobs') {
|
||||
entityChange.noteIds = sql.getColumn("SELECT noteId FROM notes WHERE blobId = ? AND isDeleted = 0", [entityChange.entityId]);
|
||||
} else if (entityChange.entityName === 'attachments') {
|
||||
entityChange.entity = sql.getRow(`SELECT attachments.*, LENGTH(blobs.content) AS contentLength
|
||||
FROM attachments
|
||||
|
||||
Reference in New Issue
Block a user