update shortener create to allow undefined projectId

pull/3/head
TZGyn 2 years ago
parent aca10aa5d0
commit ce3677cf50
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -9,8 +9,8 @@ export const GET: RequestHandler = async () => {
}
const shortenerInsertSchema = z.object({
link: z.string().url(),
projectId: z.number().nullable(),
link: z.string().url('Link must be in url format'),
projectId: z.number().nullish(),
})
export const POST: RequestHandler = async (event) => {

Loading…
Cancel
Save