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,
|
periodEnd: invoice.periodEnd,
|
||||||
dueDate: invoice.dueDate,
|
dueDate: invoice.dueDate,
|
||||||
paidAt: invoice.paidAt,
|
paidAt: invoice.paidAt,
|
||||||
items: (invoice.items ?? []).map((item) => ({
|
items: [],
|
||||||
id: item.id,
|
|
||||||
itemType: item.itemType,
|
|
||||||
description: item.description,
|
|
||||||
quantity: item.quantity,
|
|
||||||
unitPrice: item.unitPrice / 100,
|
|
||||||
amount: item.amount / 100,
|
|
||||||
})),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue