pull/253/head
nicolas 2021-06-07 09:56:15 +02:00
parent d2934a45ff
commit 1daf9bd3f7
1 changed files with 1 additions and 2 deletions

View File

@ -49,8 +49,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
const referencesToCreate = currentUser.credentials.length == 0 ? [] : [
{
type: currentUser.credentials[0].type,
// Get the eventId. The Google API does not return it somewhere elso, so we need do it like this:
uid: result.htmlLink.replace("https://www.google.com/calendar/event?eid=", "")
uid: result.id
}
];