Skip to content

Commit 8f92db5

Browse files
authored
Revert "fix: convert file size in payload to bigint (#832)"
This reverts commit c262e81.
1 parent c262e81 commit 8f92db5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/modules/file/file.usecase.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ export class FileUseCases {
407407
throw new ConflictException('File already exists');
408408
}
409409

410-
const isFileEmpty = BigInt(newFileDto.size) === BigInt(0);
410+
const isFileEmpty = newFileDto.size === BigInt(0);
411411

412412
if (isFileEmpty) {
413413
await this.checkEmptyFilesLimit(user);
@@ -908,7 +908,7 @@ export class FileUseCases {
908908
throw new BadRequestException(`${file.status} files can not be replaced`);
909909
}
910910

911-
const isFileEmpty = BigInt(newFileData.size) === BigInt(0);
911+
const isFileEmpty = newFileData.size === BigInt(0);
912912

913913
if (isFileEmpty) {
914914
await this.checkEmptyFilesLimit(user);

0 commit comments

Comments
 (0)