Skip to content

Commit

Permalink
refactor: update code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rickstaa committed Jan 16, 2023
1 parent ab9c563 commit ad9db67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/retryer.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ const retryer = async (fetcher, variables, retries = 0) => {
// prettier-ignore
// also checking for bad credentials if any tokens gets invalidated
const isBadCredential = err.response.data && err.response.data.message === "Bad credentials";
const isAccountSuspended = err.response.data && err.response.data.message === "Sorry. Your account was suspended.";
const isAccountSuspended =
err.response.data &&
err.response.data.message === "Sorry. Your account was suspended.";

if (isBadCredential || isAccountSuspended) {
logger.log(`PAT_${retries + 1} Failed`);
Expand Down

1 comment on commit ad9db67

@vercel
Copy link

@vercel vercel bot commented on ad9db67 Jan 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.