mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
impr(server): not saving 503 errors to the database
This commit is contained in:
parent
f9732af192
commit
a11314f11c
1 changed files with 5 additions and 1 deletions
|
@ -43,7 +43,11 @@ async function errorHandlingMiddleware(
|
|||
recordClientErrorByVersion(req.headers["x-client-version"] as string);
|
||||
}
|
||||
|
||||
if (!isDevEnvironment() && monkeyResponse.status >= 500) {
|
||||
if (
|
||||
!isDevEnvironment() &&
|
||||
monkeyResponse.status >= 500 &&
|
||||
monkeyResponse.status !== 503
|
||||
) {
|
||||
const { uid, errorId } = monkeyResponse.data;
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue