优化
This commit is contained in:
@@ -64,10 +64,10 @@ export async function run(context) {
|
||||
return
|
||||
}
|
||||
if (linkContainer) {
|
||||
const allocationMatches = oceanDetail?.containerAllocations?.some?.((item) =>
|
||||
const allocationMatches = oceanDetail?.containers?.some?.((item) =>
|
||||
id(item?.containerBookingId) === id(containerFlow.containerBookingId))
|
||||
context.assert(MODULE, '已放舱订舱保留本轮柜次分配', oceanResponse, allocationMatches,
|
||||
`containerBookingId=${id(containerFlow.containerBookingId)}, allocations=${oceanDetail?.containerAllocations?.length ?? 'n/a'}`, OPTIONS)
|
||||
`containerBookingId=${id(containerFlow.containerBookingId)}, containers=${oceanDetail?.containers?.length ?? 'n/a'}`, OPTIONS)
|
||||
if (!allocationMatches) return
|
||||
}
|
||||
const payload = {
|
||||
|
||||
Reference in New Issue
Block a user