Properly get eventId
This commit is contained in:
		
							parent
							
								
									8c7322b0dc
								
							
						
					
					
						commit
						38b6d1c3e9
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -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=", "") | ||||
|         } | ||||
|     ]; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 nicolas
						nicolas