mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
partial configs for docker
This commit is contained in:
@@ -25,6 +25,7 @@ export default defineEventHandler(async event => {
|
||||
return await Redis.useCache({ key: `invoices:${project_id}`, exp: 10 }, async () => {
|
||||
|
||||
const invoices = await StripeService.getInvoices(project.customer_id);
|
||||
if (!invoices) return [];
|
||||
|
||||
return invoices?.data.map(e => {
|
||||
const result: InvoiceData = {
|
||||
@@ -37,6 +38,7 @@ export default defineEventHandler(async event => {
|
||||
return result;
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user