Cleaned up more console logs
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user