Merge pull request #6 from nbitzz:1.3.2

1.3.2
This commit is contained in:
May 2023-08-28 11:08:29 -07:00 committed by GitHub
commit 3ad5215a48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "monofile", "name": "monofile",
"version": "1.3.1", "version": "1.3.2",
"description": "Discord-based file sharing", "description": "Discord-based file sharing",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View file

@ -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 (!file.chunkSize) file_updates.chunkSize = atSIB[0]
if (Object.keys(file_updates).length) { // if file_updates not empty if (Object.keys(file_updates).length) { // if file_updates not empty
// i gotta do these weird workarounds, ts is weird sometimes // i gotta do these weird workarounds, ts is weird sometimes