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), }; });