feat: Add support for multiple google calendars

This commit is contained in:
Fernando Barrios committed 2021-05-11 07:27:06 -06:00
1 parent 3a6eae8b8f
commit 5f101ca5fc
3 files changed
+29 -16

No files matched your search

+1 -1
View File
@@ -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'];
const scopes = ['https://www.googleapis.com/auth/calendar.readonly', 'https://www.googleapis.com/auth/calendar.events', 'https://www.googleapis.com/auth/calendar'];
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method === 'GET') {