chore: make apis nullable (#7763)

what:

- makes top level attributes of each object an optional field in the http layer where possible

RESOLVES CORE-2229
This commit is contained in:
Riqwan Thamir
2024-06-20 10:10:59 +00:00
committed by GitHub
parent 33c4cd34cc
commit f61557712c
64 changed files with 431 additions and 416 deletions
@@ -102,7 +102,8 @@ function prepareFulfillmentData({
} as FulfillmentWorkflow.CreateFulfillmentItemWorkflowDTO
})
let locationId: string | undefined = input.location_id
let locationId: string | undefined | null = input.location_id
if (!locationId) {
locationId = shippingOption.service_zone.fulfillment_set.location?.id
}
@@ -168,7 +168,7 @@ function prepareFulfillmentData({
} as FulfillmentWorkflow.CreateFulfillmentItemWorkflowDTO
})
let locationId: string | undefined = input.location_id
let locationId: string | undefined | null = input.location_id
if (!locationId) {
locationId = returnShippingOption.service_zone.fulfillment_set.location?.id
}