API AuthenticateでDB接続エラーなどが発生するとログアウトさせられてしまうのを修正 Fix #7603 (#7604)

This commit is contained in:
MeiMei
2021-07-18 00:53:16 +09:00
committed by GitHub
parent 6d1d7b5366
commit 62dede02ea
3 changed files with 22 additions and 11 deletions

View File

@ -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();
}