2
0

feat(bot): ️ Add custom file upload size limit

This commit is contained in:
Baptiste Arnaud
2022-06-21 16:53:45 +02:00
parent 1931a5c9c0
commit ea765640cf
17 changed files with 141 additions and 44 deletions

View File

@ -1,6 +1,9 @@
import { Answer as AnswerFromPrisma } from 'db'
export type Answer = Omit<AnswerFromPrisma, 'resultId' | 'createdAt'>
export type Answer = Omit<
AnswerFromPrisma,
'resultId' | 'createdAt' | 'storageUsed'
> & { storageUsed?: number }
export type Stats = {
totalViews: number

View File

@ -8,6 +8,7 @@ export const fileInputOptionsSchema = optionBaseSchema.and(
placeholder: z.string(),
button: z.string(),
}),
sizeLimit: z.number().optional(),
})
)