feat(core-flows,medusa,utils,types): adds delivered_quantity to order (#9130)
what: - adds delivered_quantity to order https://github.com/user-attachments/assets/709b1727-08ed-4a88-ae29-38f13540e301
This commit is contained in:
@@ -1043,7 +1043,7 @@ export default class InventoryModuleService
|
||||
locationId: string,
|
||||
@MedusaContext() context: Context = {}
|
||||
): Promise<InventoryTypes.InventoryLevelDTO> {
|
||||
const inventoryLevel = await this.listInventoryLevels(
|
||||
const [inventoryLevel] = await this.listInventoryLevels(
|
||||
{ inventory_item_id: inventoryItemId, location_id: locationId },
|
||||
{ take: null },
|
||||
context
|
||||
@@ -1056,7 +1056,7 @@ export default class InventoryModuleService
|
||||
)
|
||||
}
|
||||
|
||||
return inventoryLevel[0]
|
||||
return inventoryLevel
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user