Jelajahi Sumber

Fixed blacklisting bucket criteria (#4323)

Co-authored-by: Artem <Artem Slugin>
attemka 1 tahun lalu
induk
melakukan
8257f6013c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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)
         }