Skip to content

Commit

Permalink
fix(web): increase counter cache time
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrnt committed Sep 11, 2024
1 parent 1ca23b5 commit f018ef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/server/trpc/router/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export const eventRouter = router({
)),
};
}),
getEventCount: publicProcedure.query(async ({ ctx }) => {
getEventCount: publicProcedure.query(async () => {
return await getTotalEventCount();
}),
});
Expand All @@ -340,6 +340,6 @@ const getTotalEventCount = memoize(
return eventCount + apiRequestCount;
},
{
maxAge: 1000 * 60,
maxAge: 1000 * 60 * 60,
}
);

0 comments on commit f018ef1

Please sign in to comment.