Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
fix: incorrect exit code for --no-email
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzeng committed Jul 21, 2023
1 parent de6b6de commit 5e69946
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/exit-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export enum ExitCode {
NEED_SMS_AUTH = 2,
CANNOT_SOLVE_PUZZLE = 3,
OPERATION_TIMEOUT_EXCEEDED = 4,
NEED_EMAIL_AUTH = 5,
LOGIN_DENIED = 6,
NEED_EMAIL_AUTH = 7,
TOO_MUCH_TRY = 69,
INVALID_OPTIONS = 77,
WRONG_PASSWORD = 87,
Expand Down
4 changes: 2 additions & 2 deletions src/tw-shopee-bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,9 @@ export default class TaiwanShopeeBot {
// Login failed. Try use email link to login.
if (disableEmailLogin) {
logger.error('Email authentication is required.')
} else {
result = await this.tryLoginWithEmailLink()
return result
}
result = await this.tryLoginWithEmailLink()
}

if (result !== undefined) {
Expand Down

0 comments on commit 5e69946

Please sign in to comment.