Skip to content

Commit e7bc830

Browse files
committed
fix(admin-ui): resolve all bugs displayed for admin-ui #308
1 parent d400154 commit e7bc830

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

app/redux/api/backend-api.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import axios_instance from 'axios'
33

44
// Get OAuth2 Configuration
55
export const fetchServerConfiguration = async () => {
6-
return await axios
6+
return axios
77
.get('/oauth2/config')
88
.then((response) => response.data)
99
.catch((error) => {
@@ -17,7 +17,7 @@ export const fetchServerConfiguration = async () => {
1717

1818
// get user location and ip
1919
export const getUserIpAndLocation = async () => {
20-
return await axios_instance
20+
return axios_instance
2121
.get('https://geolocation-db.com/json/')
2222
.then((response) => response.data)
2323
.catch((error) => {
@@ -28,7 +28,7 @@ export const getUserIpAndLocation = async () => {
2828

2929
// Retrieve user information
3030
export const fetchUserInformation = async (code) => {
31-
return await axios
31+
return axios
3232
.post('/oauth2/user-info', {
3333
code: code,
3434
})
@@ -44,7 +44,7 @@ export const fetchUserInformation = async (code) => {
4444

4545
// post user action
4646
export const postUserAction = async (userAction) => {
47-
return await axios
47+
return axios
4848
.post('/logging/audit', {
4949
headers: {
5050
'Content-Type': 'application/json',
@@ -57,7 +57,7 @@ export const postUserAction = async (userAction) => {
5757

5858
// Get API Access Token
5959
export const fetchApiAccessToken = async (jwt) => {
60-
return await axios
60+
return axios
6161
.get('/oauth2/api-protection-token', { params: { ujwt: jwt } })
6262
.then((response) => response.data)
6363
.catch((error) => {
@@ -71,7 +71,7 @@ export const fetchApiAccessToken = async (jwt) => {
7171

7272
// Check License present
7373
export const checkLicensePresent = async () => {
74-
return await axios
74+
return axios
7575
.get('/license/checkLicense')
7676
.then((response) => response.data)
7777
.catch((error) => {
@@ -83,7 +83,7 @@ export const checkLicensePresent = async () => {
8383
// Activate license using key
8484
export const activateLicense = async (licenseKey) => {
8585
let data = {licenseKey: licenseKey}
86-
return await axios
86+
return axios
8787
.post('/license/activateLicense', data, {
8888
headers: {
8989
'Content-Type': 'application/json',

app/redux/reducers/LicenseReducer.js

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export default function licenseReducer(state = INIT_STATE, action) {
5656
default:
5757
return {
5858
...state,
59-
islicenseCheckResultLoaded: false,
6059
}
6160
}
6261
}

0 commit comments

Comments
 (0)