|
@ -382,6 +382,24 @@ export default { |
|
|
this.$segment.identify(emailCookie, { |
|
|
this.$segment.identify(emailCookie, { |
|
|
email: emailCookie |
|
|
email: emailCookie |
|
|
}); |
|
|
}); |
|
|
|
|
|
const newUser = |
|
|
|
|
|
{ |
|
|
|
|
|
fields: { |
|
|
|
|
|
Email: emailCookie, |
|
|
|
|
|
CreatedDate: new Date(), |
|
|
|
|
|
Type: 'portier-login', |
|
|
|
|
|
Site: 'https://iflylocal.com/' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const res = await fetch(`https://api.airtable.com/v0/appiQwfVZixRgRICe/User/`, { |
|
|
|
|
|
method: 'POST', |
|
|
|
|
|
headers: { |
|
|
|
|
|
'Content-Type': 'application/json', |
|
|
|
|
|
Authorization: 'Bearer keyJ2ht64ZSN57AG1' |
|
|
|
|
|
}, |
|
|
|
|
|
body: JSON.stringify(newUser) |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created () { |
|
|
created () { |
|
|