From f4697850c68b9f07d4ec7448c06260ff4dbb7d9e Mon Sep 17 00:00:00 2001 From: stringsplit <77242831+nbitzz@users.noreply.github.com> Date: Mon, 28 Aug 2023 11:08:00 -0700 Subject: [PATCH 1/2] quick patch to fix issue with updates --- src/server/lib/files.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/lib/files.ts b/src/server/lib/files.ts index 40fd33dc..473f2bac 100644 --- a/src/server/lib/files.ts +++ b/src/server/lib/files.ts @@ -320,7 +320,7 @@ export default class Files { } - if (!file.sizeInBytes) file_updates.sizeInBytes = atSIB.reduce((a,b) => a+b); + if (!file.sizeInBytes) file_updates.sizeInBytes = atSIB.reduce((a,b) => a+b, 0); if (!file.chunkSize) file_updates.chunkSize = atSIB[0] if (Object.keys(file_updates).length) { // if file_updates not empty // i gotta do these weird workarounds, ts is weird sometimes From d407fa1578dc8f2b46691e6dda1a62b4012a7496 Mon Sep 17 00:00:00 2001 From: stringsplit <77242831+nbitzz@users.noreply.github.com> Date: Mon, 28 Aug 2023 11:08:17 -0700 Subject: [PATCH 2/2] git didnt detect this change until now --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8f2d76e8..796dd970 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "monofile", - "version": "1.3.1", + "version": "1.3.2", "description": "Discord-based file sharing", "main": "index.js", "scripts": {