mirror of
https://github.com/zadam/trilium.git
synced 2025-11-30 04:24:24 +01:00
fix(server): uploading new attachments doesn't report size
This commit is contained in:
parent
b4ab07bd78
commit
88b5e9db87
@ -150,7 +150,7 @@ function fillInAdditionalProperties(entityChange: EntityChange) {
|
||||
entityChange.entity = sql.getRow(/*sql*/`SELECT * FROM options WHERE name = ?`, [entityChange.entityId]);
|
||||
}
|
||||
} else if (entityChange.entityName === "attachments") {
|
||||
entityChange.entity = becca.getAttachment(entityChange.entityId);
|
||||
entityChange.entity = becca.getAttachment(entityChange.entityId, { includeContentLength: true });
|
||||
|
||||
if (!entityChange.entity) {
|
||||
entityChange.entity = sql.getRow(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user