fix(server): uploading new attachments doesn't report size

This commit is contained in:
Elian Doran 2025-11-29 13:03:08 +02:00
parent b4ab07bd78
commit 88b5e9db87
No known key found for this signature in database

View File

@ -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(