mirror of
https://github.com/urosran/cally.git
synced 2026-10-25 03:57:55 +00:00
- Implemented connecting multiple accounts for google
This commit is contained in:
@@ -14,12 +14,12 @@ export const useFetchAndSaveGoogleEvents = () => {
|
||||
const timeMin = new Date(new Date().setFullYear(new Date().getFullYear() - 1));
|
||||
const timeMax = new Date(new Date().setFullYear(new Date().getFullYear() + 5));
|
||||
|
||||
console.log("Token: ", token ?? profileData?.googleToken);
|
||||
console.log("Token: ", token);
|
||||
|
||||
try {
|
||||
const response = await fetchGoogleCalendarEvents(
|
||||
token ?? profileData?.googleToken,
|
||||
email ?? profileData?.googleMail,
|
||||
token,
|
||||
email,
|
||||
profileData?.familyId,
|
||||
timeMin.toISOString().slice(0, -5) + "Z",
|
||||
timeMax.toISOString().slice(0, -5) + "Z"
|
||||
|
||||
Reference in New Issue
Block a user