Skip to content

Commit

Permalink
remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
MistahSanta committed Sep 2, 2024
1 parent 18726e8 commit 9f42102
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/server/api/routers/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const calendarRouter = createTRPCRouter({
addEvent: publicProcedure
.input(byEventDetails)
.mutation( ( {input} ) => {
console.log(input)
const { eventName, startTime, endTime, location, tokens, description } = input;

const oauth2Client : OAuth2Client = new google.auth.OAuth2({
Expand All @@ -40,7 +39,7 @@ export const calendarRouter = createTRPCRouter({
try {
const response = calendar.events.insert({
calendarId: 'primary',
requestBody: {
resource: {
summary: eventName,
description: description,
location: location,
Expand All @@ -55,7 +54,7 @@ export const calendarRouter = createTRPCRouter({

return response
} catch( error) {
console.error("Recieved an error when trying to add event to calendar: ", e)
console.error("Recieved an error when trying to add event to calendar: ", error)
throw error
}

Expand Down

0 comments on commit 9f42102

Please sign in to comment.