1
0
Quellcode durchsuchen

Fixed blacklisting bucket criteria (#4323)

Co-authored-by: Artem <Artem Slugin>
attemka vor 1 Jahr
Ursprung
Commit
8257f6013c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      packages/atlas/src/providers/uploads/uploads.hooks.ts

+ 1 - 1
packages/atlas/src/providers/uploads/uploads.hooks.ts

@@ -179,7 +179,7 @@ export const useStartFileUpload = () => {
         const axiosError = e as AxiosError
         const networkFailure =
           axiosError.isAxiosError &&
-          (!axiosError.response?.status || (axiosError.response.status < 400 && axiosError.response.status >= 500))
+          (!axiosError.response?.status || (axiosError.response.status >= 400 && axiosError.response.status <= 500))
         if (networkFailure) {
           markStorageOperatorFailed(uploadOperator.id)
         }