Skip to content

Commit

Permalink
Bust stale download numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Jan 7, 2025
1 parent 129c183 commit 40316fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/About/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export default function Stats() {
useEffect(() => {
void (async () => {
try {
const response = await fetch(urls.stats);
const now = new Date();
const ts = `${now.getYear()}${now.getMonth()}${now.getDay()}${now.getHours()}`;
const response = await fetch(`${urls.stats}?timestamp=${ts}`);
const data = await response.json();
setStats(data);
} catch (error) {
Expand Down

0 comments on commit 40316fc

Please sign in to comment.