Skip to content

Commit

Permalink
increase retries for vessel group creation
Browse files Browse the repository at this point in the history
  • Loading branch information
satellitestudiodesign committed Aug 8, 2024
1 parent 0d64412 commit 4b32205
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ export const createVesselGroupThunk = createAsyncThunk(
}
const saveVesselGroup: any = async (vesselGroup: VesselGroupUpsert, tries = 0) => {
let vesselGroupUpdated: VesselGroup
if (tries < 2) {
if (tries < 5) {
try {
const name = tries > 0 ? vesselGroupUpsert.name + `_${tries}` : vesselGroupUpsert.name
vesselGroupUpdated = await GFWAPI.fetch<VesselGroup>('/vessel-groups', {
Expand Down

0 comments on commit 4b32205

Please sign in to comment.