mirror of
https://github.com/urosran/cally.git
synced 2026-10-23 07:17:54 +00:00
Reduce sync
This commit is contained in:
@@ -14,8 +14,8 @@ export const useFetchAndSaveGoogleEvents = () => {
|
||||
mutationKey: ["fetchAndSaveGoogleEvents"],
|
||||
mutationFn: async ({token, email}: { token?: string; email?: string }) => {
|
||||
console.log("Fetching Google Calendar events...");
|
||||
const timeMin = new Date(new Date().setFullYear(new Date().getFullYear() - 1));
|
||||
const timeMax = new Date(new Date().setFullYear(new Date().getFullYear() + 5));
|
||||
const timeMin = new Date(new Date().setMonth(new Date().getMonth() - 2));
|
||||
const timeMax = new Date(new Date().setMonth(new Date().getMonth() + 2));
|
||||
|
||||
console.log("Token: ", token);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user