Skip to content

Commit

Permalink
wrong direction
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgeiss0702 committed Jan 17, 2025
1 parent ae9e2f3 commit e43a3ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/search/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const load = (async ({fetch, url, cookies}) => {
const q = url.searchParams.get("q");
let page = Number(url.searchParams.get("page") ?? 1);

if(!showsCache || Date.now() - showsFetched < 60 * 60e3) {
if(!showsCache || Date.now() - showsFetched > 60 * 60e3) {
showsFetched = Date.now()
showsCache = fetch("/api/history/all")
.then(r => r.json())
Expand Down

0 comments on commit e43a3ca

Please sign in to comment.