fix(billing-service): remove stale invoice.items reference after OneToMany removal

This commit is contained in:
hailin 2026-03-04 01:49:23 -08:00
parent df3b1a6ec6
commit f0634c2e49
1 changed files with 1 additions and 8 deletions

View File

@ -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,
})),
}; };
} }