Skip to content

Commit

Permalink
Updated refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoAbove committed Nov 10, 2024
1 parent b04285d commit 2f196f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/patreon.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ const getPatreonPatronsData = async () => {

if (data.errors) {
console.error("Patreon API error, membersQuery", data.errors);
if (data.errors[0].status == 401) {
await refreshCreatorToken();
}
return { tierMembers: {}, tiers: {} };
}

Expand Down

0 comments on commit 2f196f4

Please sign in to comment.