Skip to content

Commit

Permalink
fix: response code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-yarmosh committed Jul 25, 2024
1 parent 0075f92 commit 7e97288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper/alt-ips-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const apiConnectAltIpsHandler = async ({ token, socketId, ip }: { token:
} else {
if (!(result.reason instanceof RequestError)) {
logger.error(result.reason);
} else if (result.reason.code !== '400') {
} else if (result.reason.response?.statusCode !== 400) {
logger.error(result.reason.message);
}
}
Expand Down

0 comments on commit 7e97288

Please sign in to comment.