refactor: rewrite usePaymentPlans with RQ

This commit is contained in:
Rıdvan Akca
2024-03-12 18:03:14 +03:00
parent 7a8e8c1f3e
commit 2ebe71ddd0
7 changed files with 31 additions and 46 deletions

View File

@@ -1,10 +0,0 @@
import appConfig from '../../config/app.js';
import Billing from '../../helpers/billing/index.ee.js';
const getPaymentPlans = async () => {
if (!appConfig.isCloud) return;
return Billing.paddlePlans;
};
export default getPaymentPlans;

View File

@@ -12,7 +12,6 @@ import getFlow from './queries/get-flow.js';
import getFlows from './queries/get-flows.js';
import getInvoices from './queries/get-invoices.ee.js';
import getNotifications from './queries/get-notifications.js';
import getPaymentPlans from './queries/get-payment-plans.ee.js';
import getPermissionCatalog from './queries/get-permission-catalog.ee.js';
import getRole from './queries/get-role.ee.js';
import getRoles from './queries/get-roles.ee.js';
@@ -42,7 +41,6 @@ const queryResolvers = {
getFlows,
getInvoices,
getNotifications,
getPaymentPlans,
getPermissionCatalog,
getRole,
getRoles,

View File

@@ -32,7 +32,6 @@ type Query {
getCurrentUser: User
getConfig(keys: [String]): JSONObject
getInvoices: [Invoice]
getPaymentPlans: [PaymentPlan]
getPermissionCatalog: PermissionCatalog
getRole(id: String!): Role
getRoles: [Role]
@@ -690,13 +689,6 @@ type Invoice {
receipt_url: String
}
type PaymentPlan {
name: String
limit: String
price: String
productId: String
}
type ListSamlAuthProvider {
id: String
name: String