diff --git a/community_server/src/Controller/AppRequestsController.php b/community_server/src/Controller/AppRequestsController.php index b79b94418..37dd04d92 100644 --- a/community_server/src/Controller/AppRequestsController.php +++ b/community_server/src/Controller/AppRequestsController.php @@ -316,10 +316,7 @@ class AppRequestsController extends AppController if('success' == $gdtEntries['state'] && 'success' == $gdtEntries['data']['state']) { $gdtSum = intval($gdtEntries['data']['sum']); } else { - if($user) { - $this->addAdminError('StateBalancesController', 'overview', $gdtEntries, $user['id']); - } else { - $this->addAdminError('StateBalancesController', 'overview', $gdtEntries, 0); + $this->addAdminError('StateBalancesController', 'overview', $gdtEntries, $user['id'] ? $user['id'] : 0); } } @@ -355,4 +352,4 @@ class AppRequestsController extends AppController } } - \ No newline at end of file + diff --git a/frontend/.env.dist b/frontend/.env.dist index b616c8dc0..39edd4b4e 100644 --- a/frontend/.env.dist +++ b/frontend/.env.dist @@ -1,5 +1,3 @@ LOGIN_API_URL=http://localhost/login_api/ -COMMUNITY_API_STATE_BALANCE_URL=http://localhost/api/ -COMMUNITY_API_TRANSACTION_CREATION_URL=http://localhost/api/ -COMMUNITY_API_TRANSACTION_SEND_COINS=http://localhost/api/ -VUE_PATH=/vue \ No newline at end of file +COMMUNITY_API_URL=http://localhost/api/ +VUE_PATH=/vue diff --git a/frontend/src/apis/communityAPI.js b/frontend/src/apis/communityAPI.js index fb8696949..c7511bda2 100644 --- a/frontend/src/apis/communityAPI.js +++ b/frontend/src/apis/communityAPI.js @@ -33,11 +33,11 @@ const apiPost = async (url, payload) => { const communityAPI = { balance: async (session_id) => { - return apiGet(CONFIG.COMMUNITY_API_STATE_BALANCE_URL + 'getBalance/' + session_id) + return apiGet(CONFIG.COMMUNITY_API_URL + 'getBalance/' + session_id) }, transactions: async (session_id) => { return apiGet( - CONFIG.COMMUNITY_API_STATE_BALANCE_URL + 'listTransactions/1/25/ASC/' + session_id, + CONFIG.COMMUNITY_API__URL + 'listTransactions/1/25/ASC/' + session_id, ) }, /*create: async (session_id, email, amount, memo, target_date = new Date() ) => {