Merge pull request #1718 from automatisch/AUT-830

refactor: rewrite useInvoices with RQ
This commit is contained in:
Ali BARIN
2024-03-15 13:22:21 +01:00
committed by GitHub
6 changed files with 24 additions and 52 deletions

View File

@@ -1,19 +0,0 @@
import Billing from '../../helpers/billing/index.ee.js';
const getInvoices = async (_parent, _params, context) => {
const subscription = await context.currentUser.$relatedQuery(
'currentSubscription'
);
if (!subscription) {
return;
}
const invoices = await Billing.paddleClient.getInvoices(
Number(subscription.paddleSubscriptionId)
);
return invoices;
};
export default getInvoices;