mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Update create.ts
This commit is contained in:
parent
ec311826f9
commit
c61c68845a
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ export const POST: APIRoute = async ({ request, locals }) => {
|
|||
let body
|
||||
try {
|
||||
const formData = await parseForm(request)
|
||||
body = s.create(formData, AlbumSchema)
|
||||
body = s.create(formData, CreateAlbum)
|
||||
} catch (err) {
|
||||
return Status(422, (err as Error).message)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue