Skip to content

Commit

Permalink
Fix fleet segment api
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Aug 13, 2024
1 parent c3a084f commit c0c23fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/features/FleetSegment/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function createFleetSegmentFromAPI(segmentFields: UpdateFleetSegment): Pro
*/
async function addFleetSegmentYearFromAPI(nextYear: number) {
try {
return await monitorfishApiKy.post(`/bff/v1/fleet_segments/${nextYear}/backoffice`)
return await monitorfishApiKy.post(`/bff/v1/fleet_segments/backoffice/${nextYear}`)
} catch (err) {
throw new ApiError(ADD_FLEET_SEGMENT_YEAR_ERROR_MESSAGE, err)
}
Expand Down

0 comments on commit c0c23fe

Please sign in to comment.