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:
1 parent
33c4cd34cc
commit
f61557712c
64 files changed
+431
-416
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user