Skip to content

Commit 15621b6

Browse files
committed
chore: modified file response dto
1 parent 8b6da86 commit 15621b6

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/modules/file/dto/file.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { FileStatus } from '../file.domain';
66
export class FileDto {
77
id: number;
88
uuid: string;
9-
fileId: string;
9+
fileId: string | null;
1010
name: string;
1111
type: string;
1212
size: bigint;

src/modules/file/dto/responses/file.dto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export class FileDto {
66
id: number;
77
@ApiProperty()
88
uuid: string;
9-
@ApiProperty()
10-
fileId: string;
9+
@ApiProperty({ nullable: true })
10+
fileId: string | null;
1111
@ApiProperty()
1212
name: string;
1313
@ApiProperty()

src/modules/file/file.usecase.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,9 @@ export class FileUseCases {
462462
]);
463463

464464
if (!limit || limit.value === '0') {
465-
throw new PaymentRequiredException('You can not have empty files');
465+
throw new PaymentRequiredException(
466+
'You can not have empty files, upgrade your plan to get more features',
467+
);
466468
}
467469

468470
if (limit.shouldLimitBeEnforced({ currentCount: emptyFilesCount })) {

0 commit comments

Comments
 (0)