fixing log view edit error

This commit is contained in:
2025-02-02 19:39:39 -06:00
parent 5be32d0ce1
commit 4f7633be7f
3 changed files with 1 additions and 3 deletions

View File

@@ -10,7 +10,6 @@ export class AzureAdStrategy extends PassportStrategy(
'azure-ad' 'azure-ad'
) { ) {
constructor(@Inject(MODULE_OPTIONS_TOKEN) authModuleOptions: AuthModuleOptions) { constructor(@Inject(MODULE_OPTIONS_TOKEN) authModuleOptions: AuthModuleOptions) {
console.log(authModuleOptions)
super({ super({
identityMetadata: `https://login.microsoftonline.com/${authModuleOptions.tenantId}/.well-known/openid-configuration`, identityMetadata: `https://login.microsoftonline.com/${authModuleOptions.tenantId}/.well-known/openid-configuration`,
clientID: authModuleOptions.clientId, clientID: authModuleOptions.clientId,

View File

@@ -118,7 +118,7 @@ const LogForm: React.FC<ILogFormProps> = ({
? { headers: { Authorization: await getAccessToken() } } ? { headers: { Authorization: await getAccessToken() } }
: {}; : {};
const response: AxiosResponse = await httpClient.get( const response: AxiosResponse = await httpClient.get(
`api/logs/${entryId}`, `api/logs/log/${entryId}`,
config config
); );
const entry = response.data; const entry = response.data;

View File

@@ -67,7 +67,6 @@ const SiteNav: React.FC<unknown> = () => {
} }
}; };
const getUserPhoto = async (accessToken: string): Promise<string> => { const getUserPhoto = async (accessToken: string): Promise<string> => {
console.log(accessToken)
try { try {
const response: AxiosResponse = await httpClient.get(`api/userPhoto`, { const response: AxiosResponse = await httpClient.get(`api/userPhoto`, {
headers: { headers: {