mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 06:28:12 +00:00
refactor(train-scheduling): rename and restructure container movement logic
This commit is contained in:
@@ -757,13 +757,13 @@ export const trainSchedulingService = {
|
||||
return unwrap(response.data);
|
||||
},
|
||||
|
||||
moveContainerItem: async (
|
||||
moveWagonLoad: async (
|
||||
scheduleId: string,
|
||||
itemId: string,
|
||||
payload: { targetTrainSetWagonId: string; swapWithItemId?: string },
|
||||
wagonId: string,
|
||||
payload: { targetWagonId: string },
|
||||
): Promise<TrainScheduleDetail> => {
|
||||
const response = await client.post<TrainScheduleDetail>(
|
||||
URL_CONSTANTS.TRAIN_SCHEDULING.MOVE_CONTAINER_ITEM(scheduleId, itemId),
|
||||
URL_CONSTANTS.TRAIN_SCHEDULING.MOVE_WAGON_LOAD(scheduleId, wagonId),
|
||||
payload,
|
||||
);
|
||||
return unwrap(response.data);
|
||||
|
||||
Reference in New Issue
Block a user