From c0cc16fa430bc64afb024c19d5faf24456bd417c Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Mon, 10 Jun 2024 11:41:41 +0200 Subject: [PATCH] fix: share size not displayed on my shares page --- backend/src/share/share.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/share/share.service.ts b/backend/src/share/share.service.ts index cc3dd291..7489b202 100644 --- a/backend/src/share/share.service.ts +++ b/backend/src/share/share.service.ts @@ -229,6 +229,7 @@ export class ShareService { return shares.map((share) => { return { ...share, + size: share.files.reduce((acc, file) => acc + parseInt(file.size), 0), recipients: share.recipients.map((recipients) => recipients.email), }; });