Skip to content

Scheduling infrastructure for absolutely everyone.

fix: remove console statements

Agusti Fernandez Pardof2be36f89cbb
diff --git a/pages/api/api-keys/[id]/edit.ts b/pages/api/api-keys/[id]/edit.ts
index 269691a7338..445cb429b44 100644
--- a/pages/api/api-keys/[id]/edit.ts
+++ b/pages/api/api-keys/[id]/edit.ts
@@ -25,7 +25,6 @@ export async function editApiKey(req: NextApiRequest, res: NextApiResponse<Respo
}).then(apiKey => {
res.status(200).json({ data: apiKey });
}).catch(error => {
- console.log(error)
res.status(404).json({ message: `apiKey with ID ${safeQuery.data.id} not found and wasn't updated`, error })
});
}
diff --git a/pages/api/api-keys/new.ts b/pages/api/api-keys/new.ts
index 0fbf6bbf330..05a59ab7ac0 100644
--- a/pages/api/api-keys/new.ts
+++ b/pages/api/api-keys/new.ts
@@ -24,7 +24,6 @@ async function createApiKey(req: NextApiRequest, res: NextApiResponse<ResponseDa
})
.then((apiKey) => res.status(201).json({ data: apiKey }))
.catch((error) => {
- // console.log(error);
res.status(400).json({ message: "Could not create apiKey", error: error })
}
)
diff --git a/pages/api/event-types/index.ts b/pages/api/event-types/index.ts
index 491989884f6..3509fbcd02e 100644
--- a/pages/api/event-types/index.ts
+++ b/pages/api/event-types/index.ts
@@ -12,7 +12,6 @@ export default async function eventType(req: NextApiRequest, res: NextApiRespons
const eventTypes = await prisma.eventType.findMany();
res.status(200).json({ data: { ...eventTypes } });
} catch (error) {
- console.log(error);
// FIXME: Add zod for validation/error handling
res.status(400).json({ error: error });
}
diff --git a/pages/api/users/index.ts b/pages/api/users/index.ts
index 3d03dcf2055..119ce2c7084 100644
--- a/pages/api/users/index.ts
+++ b/pages/api/users/index.ts
@@ -12,7 +12,6 @@ export default async function user(req: NextApiRequest, res: NextApiResponse<Res
const users = await prisma.user.findMany();
res.status(200).json({ data: { ...users } });
} catch (error) {
- console.log(error);
// FIXME: Add zod for validation/error handling
res.status(400).json({ error: error });
}