mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Removed usage of hasActiveStripeSubscriptions API (#2364)
refs https://github.com/TryGhost/Team/issues/1147 This endpoint is deprecated
This commit is contained in:
parent
983d37253a
commit
fe4d2aeb9c
2 changed files with 4 additions and 4 deletions
ghost/admin/app/components
|
@ -109,10 +109,10 @@ export default class GhLaunchWizardConnectStripeComponent extends Component {
|
|||
*openDisconnectStripeConnectModalTask() {
|
||||
this.hasActiveStripeSubscriptions = false;
|
||||
|
||||
const url = this.ghostPaths.url.api('/members/hasActiveStripeSubscriptions');
|
||||
const url = this.ghostPaths.url.api('/members/') + '?filter=status:paid&limit=0';
|
||||
const response = yield this.ajax.request(url);
|
||||
|
||||
if (response.hasActiveStripeSubscriptions) {
|
||||
if (response?.meta?.pagination?.total !== 0) {
|
||||
this.hasActiveStripeSubscriptions = true;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -213,10 +213,10 @@ export default Component.extend({
|
|||
if (!this.stripeConnectAccountId) {
|
||||
return;
|
||||
}
|
||||
const url = this.get('ghostPaths.url').api('/members/hasActiveStripeSubscriptions');
|
||||
const url = this.ghostPaths.url.api('/members/') + '?filter=status:paid&limit=0';
|
||||
const response = yield this.ajax.request(url);
|
||||
|
||||
if (response.hasActiveStripeSubscriptions) {
|
||||
if (response?.meta?.pagination?.total !== 0) {
|
||||
this.set('hasActiveStripeSubscriptions', true);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue