fix(jaas) fix jaas customer details endpoint (#9542)
This commit is contained in:
parent
52ee9b5151
commit
5cba6c7bc7
|
@ -6,4 +6,4 @@ export const BILLING_ID = 'jitsiMeetId';
|
||||||
/**
|
/**
|
||||||
* The prefix for the vpaas tenant.
|
* The prefix for the vpaas tenant.
|
||||||
*/
|
*/
|
||||||
export const VPAAS_TENANT_PREFIX = 'vpaas-magic-cookie';
|
export const VPAAS_TENANT_PREFIX = 'vpaas-magic-cookie-';
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import { openDialog } from '../base/dialog';
|
import { openDialog } from '../base/dialog';
|
||||||
|
import { VPAAS_TENANT_PREFIX } from '../billing-counter/constants';
|
||||||
import { getVpaasTenant } from '../billing-counter/functions';
|
import { getVpaasTenant } from '../billing-counter/functions';
|
||||||
|
|
||||||
import { SET_DETAILS } from './actionTypes';
|
import { SET_DETAILS } from './actionTypes';
|
||||||
|
@ -31,7 +32,7 @@ export function getCustomerDetails() {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
const baseUrl = state['features/base/config'].jaasActuatorUrl;
|
const baseUrl = state['features/base/config'].jaasActuatorUrl;
|
||||||
const jwt = state['features/base/jwt'].jwt;
|
const jwt = state['features/base/jwt'].jwt;
|
||||||
const appId = getVpaasTenant(state);
|
const appId = getVpaasTenant(state).replace(VPAAS_TENANT_PREFIX, '');
|
||||||
|
|
||||||
const shouldSendRequest = Boolean(baseUrl && jwt && appId);
|
const shouldSendRequest = Boolean(baseUrl && jwt && appId);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue