We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c262e81 commit 8f92db5Copy full SHA for 8f92db5
1 file changed
src/modules/file/file.usecase.ts
@@ -407,7 +407,7 @@ export class FileUseCases {
407
throw new ConflictException('File already exists');
408
}
409
410
- const isFileEmpty = BigInt(newFileDto.size) === BigInt(0);
+ const isFileEmpty = newFileDto.size === BigInt(0);
411
412
if (isFileEmpty) {
413
await this.checkEmptyFilesLimit(user);
@@ -908,7 +908,7 @@ export class FileUseCases {
908
throw new BadRequestException(`${file.status} files can not be replaced`);
909
910
911
- const isFileEmpty = BigInt(newFileData.size) === BigInt(0);
+ const isFileEmpty = newFileData.size === BigInt(0);
912
913
914
0 commit comments