fix: redundant logic

This commit is contained in:
Bobby Wibowo 2022-08-03 17:31:49 +07:00
parent 46c8867223
commit 2351528a42
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -459,7 +459,7 @@ self.actuallyUpload = async (req, res, user, data = {}) => {
// NOTE: We loop through Request.files for clarity,
// but we will actually have already rejected the Request
// if it has more than 1 file while being a chunk upload
if (chunkedUploads && req.files.some(file => file.isChunk)) {
if (req.files.some(file => file.isChunk)) {
req.files.forEach(file => {
file.chunksData.chunks++
// Mark as ready to accept more chunk uploads or to finalize