Add recipe deletion functionality and enhance inventory consumption details
This commit is contained in:
@@ -94,6 +94,16 @@ export class InventoryService {
|
||||
where: {
|
||||
inventoryItemId: id,
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
inventoryItemId: true,
|
||||
amountUsed: true,
|
||||
comment: true,
|
||||
createdAt: true,
|
||||
inventoryItem: {
|
||||
select: { unit: true },
|
||||
},
|
||||
},
|
||||
orderBy: {
|
||||
createdAt: 'desc',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user