Scheduling infrastructure for absolutely everyone.
Removed calendar scope, we shouldn't need it.
Alex van Andel1f6e3f8f2e5b
diff --git a/pages/api/integrations/googlecalendar/add.ts b/pages/api/integrations/googlecalendar/add.tsindex c568e652313..5d2c4ae0a35 100644--- a/pages/api/integrations/googlecalendar/add.ts+++ b/pages/api/integrations/googlecalendar/add.ts@@ -4,7 +4,7 @@ import prisma from '../../../../lib/prisma';const {google} = require('googleapis');const credentials = process.env.GOOGLE_API_CREDENTIALS;-const scopes = ['https://www.googleapis.com/auth/calendar.readonly', 'https://www.googleapis.com/auth/calendar.events', 'https://www.googleapis.com/auth/calendar'];+const scopes = ['https://www.googleapis.com/auth/calendar.readonly', 'https://www.googleapis.com/auth/calendar.events'];export default async function handler(req: NextApiRequest, res: NextApiResponse) {if (req.method === 'GET') {