Removed unused imports

This commit is contained in:
Alexis
2025-05-07 13:45:20 +02:00
parent 67b79000f6
commit 18f332be54
2 changed files with 3 additions and 5 deletions

View File

@@ -1,5 +1,4 @@
import { serverSupabaseClient } from "#supabase/server";
// import type { Calendar} from "~/models/CalendarConfig";
import type { Calendar} from "~/models/CalendarConfig";
import { postCalendarSchema } from "~/models/CalendarConfig";
@@ -63,7 +62,7 @@ export default defineEventHandler(async (event) => {
.insert(bodyData.months as never)
if (error) throw error
} catch (err) {
} catch {
// If we found an error, rollback the calendar
if (calendarId) {
await client
@@ -89,7 +88,7 @@ export default defineEventHandler(async (event) => {
.eq("id", calendarId)
.limit(1)
.single<Calendar>()
} catch (err) {
} catch {
throw createError({
cause: "Serveur",
fatal: false,

View File

@@ -1,5 +1,4 @@
import { serverSupabaseClient } from "#supabase/server";
// import type { Calendar} from "~/models/CalendarConfig";
import type { World } from "~/models/World";
import { postWorldSchema } from "~/models/World";
@@ -41,7 +40,7 @@ export default defineEventHandler(async (event) => {
if (error) throw error
return data
} catch (err) {
} catch {
throw createError({
cause: "Serveur",
status: 500,