Browse Source

Removes some debugging and dev env paths

main
Eric Amodio 3 years ago
parent
commit
d61e3bc82f
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/premium/subscription/subscriptionService.ts

+ 4
- 4
src/premium/subscription/subscriptionService.ts View File

@ -97,7 +97,7 @@ export class SubscriptionService implements Disposable {
return Uri.parse('https://stagingapi.gitkraken.com');
}
if (env === 'dev' || this.container.debugging) {
if (env === 'dev') {
return Uri.parse('https://devapi.gitkraken.com');
}
@ -111,7 +111,7 @@ export class SubscriptionService implements Disposable {
return Uri.parse('https://stagingaccount.gitkraken.com');
}
if (env === 'dev' || this.container.debugging) {
if (env === 'dev') {
return Uri.parse('https://devaccount.gitkraken.com');
}
@ -125,7 +125,7 @@ export class SubscriptionService implements Disposable {
return Uri.parse('https://staging.gitkraken.com');
}
if (env === 'dev' || this.container.debugging) {
if (env === 'dev') {
return Uri.parse('https://dev.gitkraken.com');
}
@ -354,7 +354,7 @@ export class SubscriptionService implements Disposable {
let days;
let expiresOn = new Date(startedOn);
if (!this.container.debugging && this.container.env !== 'dev') {
if (!this.container.debugging) {
// Normalize the date to just before midnight on the same day
expiresOn.setHours(23, 59, 59, 999);
expiresOn = createFromDateDelta(expiresOn, { days: 3 });

Loading…
Cancel
Save