chore: sync running docker state
Commit the app code currently running in Docker, including scheduler, store status, journal reminder, maintenance mode, and Foodsharing API check updates. Remove generated runtime logs from version control and ignore local runtime captures.
This commit is contained in:
@@ -20,7 +20,20 @@ function shouldNotifyAdminSessionError(key) {
|
||||
|
||||
function isUnauthorizedError(error) {
|
||||
const status = error?.response?.status;
|
||||
return status === 401 || status === 403;
|
||||
if (status === 401) {
|
||||
return true;
|
||||
}
|
||||
if (status !== 403) {
|
||||
return false;
|
||||
}
|
||||
const data = error?.response?.data;
|
||||
const message =
|
||||
typeof data === 'string'
|
||||
? data
|
||||
: typeof data?.message === 'string'
|
||||
? data.message
|
||||
: '';
|
||||
return message.toLowerCase().includes('not logged in');
|
||||
}
|
||||
|
||||
function isCsrfError(error) {
|
||||
|
||||
Reference in New Issue
Block a user