diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2021-07-18 00:53:16 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-18 00:53:16 +0900 |
| commit | 62dede02eaf93a6ca08983bbf84a8a71e67fa6eb (patch) | |
| tree | f11dcacfa99b93c8f1d88bcd622e59499939cdb9 /src/client | |
| parent | Improve type (diff) | |
| download | sharkey-62dede02eaf93a6ca08983bbf84a8a71e67fa6eb.tar.gz sharkey-62dede02eaf93a6ca08983bbf84a8a71e67fa6eb.tar.bz2 sharkey-62dede02eaf93a6ca08983bbf84a8a71e67fa6eb.zip | |
API AuthenticateでDB接続エラーなどが発生するとログアウトさせられてしまうのを修正 Fix #7603 (#7604)
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/account.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/account.ts b/src/client/account.ts index 102269a0dc..2b860b3ddf 100644 --- a/src/client/account.ts +++ b/src/client/account.ts @@ -47,7 +47,7 @@ function fetchAccount(token): Promise<Account> { }) .then(res => { // When failed to authenticate user - if (res.status !== 200 && res.status < 500) { + if (res.status >= 400 && res.status < 500) { return signout(); } |