Skip to content

Commit

Permalink
Update api.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwynr committed Oct 25, 2022
1 parent 4abb70d commit 95ee195
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ export const markUploadAsDone = ({ uuid, uploadKey }: { uuid: string, uploadKey:
}
}).then((response) => {
if(!response.status){
if(response.message.toString().toLowerCase().indexOf("chunks are not matching") !== -1){
if(
response.message.toString().toLowerCase().indexOf("chunks are not matching") !== -1
|| response.message.toString().toLowerCase().indexOf("not matching") !== -1
){
return setTimeout(req, timeout)
}

Expand Down

0 comments on commit 95ee195

Please sign in to comment.