Skip to content

Commit

Permalink
update the events api to force a fresh fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
atiqurx committed Oct 4, 2024
1 parent 7ecfa12 commit c2f37f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/events/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function GET(req: Request) {
const CALENDAR_API_KEY = process.env.CALENDAR_API_KEY;

// Construct the URL to fetch events
const url = `https://www.googleapis.com/calendar/v3/calendars/${GOOGLE_CALENDAR_ID}/events?key=${CALENDAR_API_KEY}`;
const url = `https://www.googleapis.com/calendar/v3/calendars/${GOOGLE_CALENDAR_ID}/events?key=${CALENDAR_API_KEY}&timestamp=${Date.now()}`;

try {
// Make a request to the Google Calendar API
Expand Down

0 comments on commit c2f37f9

Please sign in to comment.