feat(firstleg): converge phase3 loading models and pda
This commit is contained in:
@@ -85,8 +85,9 @@ export async function run(context) {
|
||||
|
||||
const ocean = await ensureOceanBooking(context, suffix)
|
||||
if (!ocean?.id) return
|
||||
const flow = context.createdResources?.phase3ContainerLoading
|
||||
const containerBookingId = flow?.finalStatus === 'COMPLETED' && id(flow?.tenantId) === '10001'
|
||||
const flow = context.createdResources?.phase3Loading
|
||||
|| context.createdResources?.phase3ContainerLoading
|
||||
const containerBookingId = ['COMPLETED', 'LOADED'].includes(flow?.finalStatus)
|
||||
? id(flow.containerBookingId) : null
|
||||
const knownAllocation = context.createdResources?.oceanBooking?.id === ocean.id && containerBookingId
|
||||
? containerBookingId : null
|
||||
|
||||
Reference in New Issue
Block a user