Scheduling infrastructure for absolutely everyone.
Properly get eventId
nicolas38b6d1c3e943
diff --git a/pages/api/book/[user].ts b/pages/api/book/[user].tsindex 7e8de5251dc..65a509bdf9d 100644--- a/pages/api/book/[user].ts+++ b/pages/api/book/[user].ts@@ -49,7 +49,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)const referencesToCreate = currentUser.credentials.length == 0 ? [] : [{type: currentUser.credentials[0].type,- uid: result.id+ // 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=", "")}];