Skip to content

Commit

Permalink
Merge pull request #6 from nbitzz:1.3.2
Browse files Browse the repository at this point in the history
1.3.2
  • Loading branch information
nbitzz authored Aug 28, 2023
2 parents 47568c6 + d407fa1 commit 3ad5215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monofile",
"version": "1.3.1",
"version": "1.3.2",
"description": "Discord-based file sharing",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/server/lib/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ad5215

Please sign in to comment.