post review fixes

This commit is contained in:
Krzysztof Dukszta-Kwiatkowski
2023-05-25 15:13:21 +02:00
committed by Ali BARIN
parent 3f8f022d48
commit 6e80ff4eb6
37 changed files with 94 additions and 75 deletions

View File

@@ -3,7 +3,7 @@ import { IGlobalVariable, IJSONObject } from '@automatisch/types';
const getCurrentUser = async ($: IGlobalVariable): Promise<IJSONObject> => {
// ref: https://docs.gitlab.com/ee/api/users.html#list-current-user
const response = await $.http.get(`${$.auth.data.oInstanceUrl}/api/v4/user`);
const response = await $.http.get('/api/v4/user');
const currentUser = response.data;
return currentUser;
};