Skip to content

Commit 994981c

Browse files
committed
chore: modified file response dto
1 parent 8b6da86 commit 994981c

2 files changed

Lines changed: 4 additions & 2 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;
1010
name: string;
1111
type: string;
1212
size: bigint;

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)