1
0
Просмотр исходного кода

Fixed blacklisting bucket criteria (#4323)

Co-authored-by: Artem <Artem Slugin>
attemka 1 год назад
Родитель
Сommit
8257f6013c
1 измененных файлов с 1 добавлено и 1 удалено
  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)
         }