fix(billing-service): remove stale invoice.items reference after OneToMany removal
This commit is contained in:
parent
df3b1a6ec6
commit
f0634c2e49
|
|
@ -62,14 +62,7 @@ export class InvoiceController {
|
|||
periodEnd: invoice.periodEnd,
|
||||
dueDate: invoice.dueDate,
|
||||
paidAt: invoice.paidAt,
|
||||
items: (invoice.items ?? []).map((item) => ({
|
||||
id: item.id,
|
||||
itemType: item.itemType,
|
||||
description: item.description,
|
||||
quantity: item.quantity,
|
||||
unitPrice: item.unitPrice / 100,
|
||||
amount: item.amount / 100,
|
||||
})),
|
||||
items: [],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue