mirror of
https://github.com/ArthurDanjou/artagents.git
synced 2026-01-28 11:00:27 +01:00
lint code
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { z } from 'zod'
|
||||
import { useValidatedBody } from 'h3-zod'
|
||||
import { z } from 'zod'
|
||||
|
||||
export default eventHandler(async (event) => {
|
||||
const { pathname } = await useValidatedBody(event, {
|
||||
pathname: z.string()
|
||||
pathname: z.string(),
|
||||
})
|
||||
|
||||
await hubBlob().del(pathname)
|
||||
|
||||
@@ -8,11 +8,11 @@ export default eventHandler(async (event) => {
|
||||
|
||||
ensureBlob(file, {
|
||||
maxSize: '1MB',
|
||||
types: ['image', 'pdf', 'application/pdf']
|
||||
types: ['image', 'pdf', 'application/pdf'],
|
||||
})
|
||||
|
||||
return hubBlob().put(file.name, file, {
|
||||
addRandomSuffix: false,
|
||||
prefix: 'files'
|
||||
prefix: 'files',
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user