Removed console log
This commit is contained in:
parent
bc37864914
commit
4674702da6
@ -38,8 +38,6 @@ export default class Stripe extends BaseAdmin {
|
|||||||
public async post(body: IPostStripeParams) {
|
public async post(body: IPostStripeParams) {
|
||||||
const url = new URL(this.baseURl);
|
const url = new URL(this.baseURl);
|
||||||
try {
|
try {
|
||||||
console.log(body);
|
|
||||||
|
|
||||||
return await this.postRequest<IPostStripeResponse>(url, body as any);
|
return await this.postRequest<IPostStripeResponse>(url, body as any);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.onError(err);
|
this.onError(err);
|
||||||
@ -48,8 +46,6 @@ export default class Stripe extends BaseAdmin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async getClientPortalSession(stripe_subscription_id: string) {
|
public async getClientPortalSession(stripe_subscription_id: string) {
|
||||||
console.log(stripe_subscription_id);
|
|
||||||
|
|
||||||
const url = new URL(this.baseURl.concat(`/${stripe_subscription_id}`));
|
const url = new URL(this.baseURl.concat(`/${stripe_subscription_id}`));
|
||||||
try {
|
try {
|
||||||
return await this.getRequest<IGetClientPortalSessionResponse>(url);
|
return await this.getRequest<IGetClientPortalSessionResponse>(url);
|
||||||
|
@ -24,8 +24,6 @@ export default function SubscriptionManageCollaborators() {
|
|||||||
include: { seats: { include: { user: true } } },
|
include: { seats: { include: { user: true } } },
|
||||||
});
|
});
|
||||||
if (!subscription[0]) return;
|
if (!subscription[0]) return;
|
||||||
console.log(subscription[0]);
|
|
||||||
|
|
||||||
subscription[0].seats?.forEach((seat) => setSelectedCollaborators((prev) => [...prev, seat.user.uid!]));
|
subscription[0].seats?.forEach((seat) => setSelectedCollaborators((prev) => [...prev, seat.user.uid!]));
|
||||||
setSubscription(subscription[0]);
|
setSubscription(subscription[0]);
|
||||||
}, []);
|
}, []);
|
||||||
@ -38,7 +36,6 @@ export default function SubscriptionManageCollaborators() {
|
|||||||
seats: true,
|
seats: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
console.log(collaborators);
|
|
||||||
_setAvailableCollaborators(collaborators);
|
_setAvailableCollaborators(collaborators);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user