Reduce sync

This commit is contained in:
Milan Paunovic
2024-11-01 11:01:28 +01:00
parent 9f37d22d5a
commit a4a0a66a2a
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -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);