diff --git a/src/api/signup-submit.js b/src/api/signup-submit.js index b7367cc60f..49b8df48e6 100644 --- a/src/api/signup-submit.js +++ b/src/api/signup-submit.js @@ -2,7 +2,7 @@ import { google } from 'googleapis'; import { readFileSync } from 'fs'; async function updateAttendees(api, calendarId, eventId, newAttendees) { - console.log(`Adding attendees to `, eventId, newAttendees) + console.log(`Adding attendees to `, eventId, newAttendees, new Date().toISOString) await api.events.patch({ calendarId: calendarId, @@ -13,6 +13,7 @@ async function updateAttendees(api, calendarId, eventId, newAttendees) { sendUpdates: 'externalOnly' }) + console.log(`Attendees added to `, eventId, new Date().toISOString) } async function addAttendeeToEvent(api, calendarId, event, email, addForReal) { diff --git a/src/pages/signup.js b/src/pages/signup.js index ca83b648e7..d694163da4 100644 --- a/src/pages/signup.js +++ b/src/pages/signup.js @@ -17,6 +17,7 @@ export default function App({ location }) { headers: { "content-type": `application/json`, }, + signal: AbortSignal.timeout(50000) }) .then(res => res.json()) .then(body => { @@ -30,7 +31,7 @@ export default function App({ location }) { const params = new URLSearchParams(location.search) - if (isSubmitted == 'spinner') { + if (isSubmitted === 'spinner') { return (

Please wait

@@ -39,7 +40,7 @@ export default function App({ location }) { ) } else if (isSubmitted) { - if (isSubmitted == 'success') { + if (isSubmitted === 'success') { return (

Thank you for signing up!