Преглед изворни кода

Fixed blacklisting bucket criteria (#4323)

Co-authored-by: Artem <Artem Slugin>
attemka пре 1 година
родитељ
комит
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)
         }