bugfix/sync-not-working-properly (#8168)

This commit is contained in:
Efraín Rochín authored and GitHub committed 2023-04-11 16:51:27 +02:00
1 parent e3a1f20cc8
commit a5bebe2b48
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -193,6 +193,9 @@ const getNextCache = async (username: string, month: string): Promise<EventBusyD
)
.then((r) => r.json())
.then((json) => json?.pageProps?.results);
// No need to wait for this, the purpose is to force re-validation every second as indicated
// in page getStaticProps.
fetch(`${baseUrl}/${username}/calendar-cache/${month}`).catch(console.log);
} catch (e) {
log.warn(e);
}