Cleaned up more console logs

This commit is contained in:
Alexis
2025-04-15 20:34:01 +02:00
parent ed1252add4
commit a50824bd4f
5 changed files with 0 additions and 7 deletions

View File

@@ -23,8 +23,6 @@ export default defineEventHandler(async (event) => {
} }
if (bodyError) { if (bodyError) {
console.log(bodyData)
console.log(bodyError)
const error = createError({ const error = createError({
cause: "Utilisateur", cause: "Utilisateur",
fatal: false, fatal: false,

View File

@@ -8,7 +8,6 @@ export default defineEventHandler(async (event) => {
const { data: bodyData, error: schemaError } = await readValidatedBody(event, body => postCalendarSchema.safeParse(body)) const { data: bodyData, error: schemaError } = await readValidatedBody(event, body => postCalendarSchema.safeParse(body))
if (schemaError) { if (schemaError) {
console.log(schemaError)
throw createError({ throw createError({
cause: "Utilisateur", cause: "Utilisateur",
fatal: false, fatal: false,

View File

@@ -13,7 +13,6 @@ export default defineEventHandler(async (event) => {
const { data: bodyData, error: bodyError } = await readValidatedBody(event, body => calendarMonthSchema.safeParse(body)) const { data: bodyData, error: bodyError } = await readValidatedBody(event, body => calendarMonthSchema.safeParse(body))
if (paramsError) { if (paramsError) {
console.log(paramsError)
throw createError({ throw createError({
cause: "Utilisateur", cause: "Utilisateur",
fatal: false, fatal: false,
@@ -23,7 +22,6 @@ export default defineEventHandler(async (event) => {
} }
if (bodyError) { if (bodyError) {
console.log(bodyData)
throw createError({ throw createError({
cause: "Utilisateur", cause: "Utilisateur",
fatal: false, fatal: false,

View File

@@ -6,7 +6,6 @@ export default defineEventHandler(async (event) => {
const { data: bodyData, error: schemaError } = await readValidatedBody(event, body => calendarMonthSchema.safeParse(body)) const { data: bodyData, error: schemaError } = await readValidatedBody(event, body => calendarMonthSchema.safeParse(body))
if (schemaError) { if (schemaError) {
console.log(schemaError)
throw createError({ throw createError({
cause: "Utilisateur", cause: "Utilisateur",
fatal: false, fatal: false,

View File

@@ -8,7 +8,6 @@ export default defineEventHandler(async (event) => {
const { data: bodyData, error: schemaError } = await readValidatedBody(event, body => postWorldSchema.safeParse(body)) const { data: bodyData, error: schemaError } = await readValidatedBody(event, body => postWorldSchema.safeParse(body))
if (schemaError) { if (schemaError) {
console.log(schemaError)
throw createError({ throw createError({
cause: "Utilisateur", cause: "Utilisateur",
fatal: false, fatal: false,