Skip to content

Commit b892d61

Browse files
committed
chore: improve no file error, remove unused code
1 parent 3f151c6 commit b892d61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/backend/src/apps/aisay/common/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export const MAX_FILE_SIZE = 6 * 1024 * 1024 // 6 MB
21
export const DOCUMENT_TYPES = [
32
'BANK_STATEMENT',
43
'CHEQUE',

packages/backend/src/apps/aisay/common/schema.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export const fileSchema = z.string().transform((value, context) => {
88
if (!parseS3Id(value)) {
99
context.addIssue({
1010
code: z.ZodIssueCode.custom,
11-
message: `${value} is not a S3 ID.`,
11+
message: `No file was provided`,
12+
fatal: true,
1213
})
1314
return z.NEVER
1415
}

0 commit comments

Comments
 (0)