From 88b5e9db8721efabf0b63c1dbe93fe3280b82768 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 29 Nov 2025 13:03:08 +0200 Subject: [PATCH] fix(server): uploading new attachments doesn't report size --- apps/server/src/services/ws.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/services/ws.ts b/apps/server/src/services/ws.ts index 9dfcbc019..132d71928 100644 --- a/apps/server/src/services/ws.ts +++ b/apps/server/src/services/ws.ts @@ -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(