diff options
author | 2021-06-05 07:58:00 +0530 | |
---|---|---|
committer | 2021-06-05 08:03:31 +0530 | |
commit | 368471dba24587415cae04ca33879404fb8639a5 (patch) | |
tree | b216754eed7d6f478ceefea9ef3c0ab5698581d4 /src/features/planSelection/api.js | |
parent | Upgraded electron to '13.1.1'. (diff) | |
download | ferdium-app-368471dba24587415cae04ca33879404fb8639a5.tar.gz ferdium-app-368471dba24587415cae04ca33879404fb8639a5.tar.zst ferdium-app-368471dba24587415cae04ca33879404fb8639a5.zip |
Reused commonly defined method for 'apiBase'
Diffstat (limited to 'src/features/planSelection/api.js')
-rw-r--r-- | src/features/planSelection/api.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/planSelection/api.js b/src/features/planSelection/api.js index 65e6c2e82..16bf9ff2d 100644 --- a/src/features/planSelection/api.js +++ b/src/features/planSelection/api.js | |||
@@ -1,12 +1,12 @@ | |||
1 | import { sendAuthRequest } from '../../api/utils/auth'; | 1 | import { sendAuthRequest } from '../../api/utils/auth'; |
2 | import { API, API_VERSION } from '../../environment'; | ||
3 | import Request from '../../stores/lib/Request'; | 2 | import Request from '../../stores/lib/Request'; |
3 | import apiBase from '../../api/apiBase'; | ||
4 | 4 | ||
5 | const debug = require('debug')('Ferdi:feature:planSelection:api'); | 5 | const debug = require('debug')('Ferdi:feature:planSelection:api'); |
6 | 6 | ||
7 | export const planSelectionApi = { | 7 | export const planSelectionApi = { |
8 | downgrade: async () => { | 8 | downgrade: async () => { |
9 | const url = `${API}/${API_VERSION}/payment/downgrade`; | 9 | const url = `${apiBase()}/payment/downgrade`; |
10 | const options = { | 10 | const options = { |
11 | method: 'PUT', | 11 | method: 'PUT', |
12 | }; | 12 | }; |