File tree Expand file tree Collapse file tree 4 files changed +5
-10
lines changed
client/packages/lowcoder/src Expand file tree Collapse file tree 4 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 2
2
export enum SubscriptionProductsEnum {
3
3
SUPPORT = "QW8L3WPMiNjQjI" ,
4
4
MEDIAPACKAGE = 'QW8MpIBHxieKXd' ,
5
- AZUREAPIS = 'premium ' ,
5
+ AZUREAPIS = 'QlQ7cdOh8Lv4dy ' ,
6
6
GOOGLEAPIS = 'enterprise' ,
7
7
AWSAPIS = 'enterprise-global' ,
8
8
PRIVATECLOUD = 'private-cloud' ,
@@ -69,6 +69,10 @@ export interface Subscription {
69
69
quantity : number ;
70
70
billing_scheme : string ;
71
71
price : string ;
72
+ histId ?: string ;
73
+ orgId ?: string ;
74
+ userId ?: string ;
75
+ customerId ?: string ;
72
76
}
73
77
74
78
export interface SubscriptionProduct {
@@ -108,9 +112,7 @@ export interface LowcoderNewCustomer {
108
112
}
109
113
110
114
export interface LowcoderSearchCustomer {
111
- hostname : string ;
112
115
hostId : string ;
113
- email : string ;
114
116
orgId : string ;
115
117
userId : string ;
116
118
}
Original file line number Diff line number Diff line change @@ -17,9 +17,7 @@ function* fetchSubscriptionsSaga(action: ReturnType<typeof fetchSubscriptionsAct
17
17
const deploymentId : string = yield select ( getDeploymentId ) ;
18
18
19
19
const subscriptionSearchCustomer : LowcoderSearchCustomer = {
20
- hostname : domain ,
21
20
hostId : deploymentId ,
22
- email : currentUser . email ,
23
21
orgId : orgID ,
24
22
userId : user . id ,
25
23
} ;
Original file line number Diff line number Diff line change @@ -62,9 +62,7 @@ export const SimpleSubscriptionContextProvider = (props: {
62
62
const admin = user . orgRoleMap . get ( orgID ) === "admin" ? "admin" : "member" ;
63
63
64
64
const subscriptionSearchCustomer : LowcoderSearchCustomer = {
65
- hostname : domain ,
66
65
hostId : deploymentId ,
67
- email : currentUser . email ,
68
66
orgId : orgID ,
69
67
userId : user . id ,
70
68
} ;
Original file line number Diff line number Diff line change @@ -64,9 +64,7 @@ export const SubscriptionContextProvider = (props: {
64
64
const userCount = useOrgUserCount ( orgID ) ;
65
65
66
66
const subscriptionSearchCustomer : LowcoderSearchCustomer = {
67
- hostname : domain ,
68
67
hostId : deploymentId ,
69
- email : currentUser . email ,
70
68
orgId : orgID ,
71
69
userId : user . id ,
72
70
} ;
@@ -128,7 +126,6 @@ export const SubscriptionContextProvider = (props: {
128
126
if ( subscriptionDataLoaded && userCount > 0 ) { // Ensure user count is available
129
127
try {
130
128
console . log ( "Total Users in Organization:" , userCount ) ;
131
-
132
129
const updatedProducts = await Promise . all (
133
130
products . map ( async ( product ) => {
134
131
const matchingSubscription = subscriptions . find (
You can’t perform that action at this time.
0 commit comments