web: Common: Fixed api people getUser with userName

This commit is contained in:
Alexey Safronov 2019-11-22 17:42:50 +03:00
parent 10fd09750d
commit c56f7e0c46

View File

@ -15,10 +15,10 @@ export function getUserList(filter = Filter.getDefault()) {
});
}
export function getUser(userId="") {
export function getUser(userName = null) {
return request({
method: "get",
url: `/people/${userId || '@self.json'}`
url: `/people/${userName || '@self'}.json`
});
}