Skip to content

Commit

Permalink
better get-payments throttling by frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
williamstein committed Dec 10, 2024
1 parent de87ea8 commit a49c6b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/packages/frontend/purchases/payments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function Payments({
reset,
}: { init?: boolean; reset?: boolean } = {}) => {
const now = Date.now();
if (now - lastLoadRef.current < 500) {
if (now - lastLoadRef.current < 3000) {
return;
}
lastLoadRef.current = now;
Expand Down
2 changes: 1 addition & 1 deletion src/packages/util/api/throttle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const THROTTLE = {
},
"purchases/stripe/get-payments": {
second: 3,
minute: 15,
minute: 20,
hour: 150,
},
"purchases/stripe/get-customer-session": {
Expand Down

0 comments on commit a49c6b1

Please sign in to comment.