fix(jaas) fix jaas customer details endpoint (#9542)

This commit is contained in:
Avram Tudor 2021-07-14 11:26:04 +03:00 committed by GitHub
parent 52ee9b5151
commit 5cba6c7bc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -6,4 +6,4 @@ export const BILLING_ID = 'jitsiMeetId';
/**
* The prefix for the vpaas tenant.
*/
export const VPAAS_TENANT_PREFIX = 'vpaas-magic-cookie';
export const VPAAS_TENANT_PREFIX = 'vpaas-magic-cookie-';

View File

@ -1,6 +1,7 @@
// @flow
import { openDialog } from '../base/dialog';
import { VPAAS_TENANT_PREFIX } from '../billing-counter/constants';
import { getVpaasTenant } from '../billing-counter/functions';
import { SET_DETAILS } from './actionTypes';
@ -31,7 +32,7 @@ export function getCustomerDetails() {
const state = getState();
const baseUrl = state['features/base/config'].jaasActuatorUrl;
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);