Skip to content

Commit

Permalink
EPMRPP-96279 || Update url for get current user request (#4117)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazarQSO authored Dec 3, 2024
1 parent f8490c0 commit 46550fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/src/common/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ export const URLS = {
logSearch: (projectKey, itemId) => `${urlBase}${projectKey}/log/search/${itemId}`,
bulkLastLogs: (projectKey) => `${urlBase}${projectKey}/log/under`,
users: (ids = []) => `${urlCommonBase}users?ids=${ids.join(',')}`,
usersMe: () => `${urlCommonBase}users/me`,
userRegistration: () => `${urlCommonBase}users/registration`,
userValidateRegistrationInfo: () => `${urlCommonBase}users/registration/info`,
userPasswordReset: () => `${urlCommonBase}users/password/reset`,
Expand All @@ -265,7 +266,7 @@ export const URLS = {
events: () => `${urlBase}activities/searches`,
searchEventsBySubjectName: (projectName) => (searchTerm = '') =>
`${urlBase}activities/${projectName}/subjectName?filter.cnt.subjectName=${searchTerm}`,
allUsers: () => `${urlCommonBase}users/all`,
allUsers: () => `${urlCommonBase}users`,

exportUsers: (filterEntities) =>
`${urlCommonBase}users/export${getQueryParams({
Expand Down
2 changes: 1 addition & 1 deletion app/src/controllers/user/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function* unassignFromProject({ payload: project }) {
function* fetchUserWorker() {
let user;
try {
user = yield call(fetch, URLS.users());
user = yield call(fetch, URLS.usersMe());
yield put(fetchUserSuccessAction(user));
} catch (err) {
yield put(fetchUserErrorAction());
Expand Down

0 comments on commit 46550fd

Please sign in to comment.