Skip to content

Commit 196c0c3

Browse files
committed
rename
1 parent d6b73db commit 196c0c3

File tree

1 file changed

+7
-7
lines changed
  • services/static-webserver/client/source/class/osparc/store

1 file changed

+7
-7
lines changed

services/static-webserver/client/source/class/osparc/store/Users.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ qx.Class.define("osparc.store.Users", {
3636
members: {
3737
__unknowns: null,
3838

39-
__fetchUser: function(groupId) {
39+
__fetchUser: function(userGroupId) {
4040
const params = {
4141
url: {
42-
gid: groupId
42+
gid: userGroupId
4343
}
4444
};
4545
return osparc.data.Resources.fetch("users", "get", params)
@@ -48,22 +48,22 @@ qx.Class.define("osparc.store.Users", {
4848
return user;
4949
})
5050
.catch(() => {
51-
this.__unknowns.push(groupId);
51+
this.__unknowns.push(userGroupId);
5252
return null;
5353
});
5454
},
5555

56-
getUser: async function(groupId, fetchIfNotFound = true) {
57-
if (this.__unknowns.includes(groupId)) {
56+
getUser: async function(userGroupId, fetchIfNotFound = true) {
57+
if (this.__unknowns.includes(userGroupId)) {
5858
return null;
5959
}
60-
const userFound = this.getUsers().find(user => user.getGroupId() === groupId);
60+
const userFound = this.getUsers().find(user => user.getGroupId() === userGroupId);
6161
if (userFound) {
6262
return userFound;
6363
}
6464
if (fetchIfNotFound) {
6565
try {
66-
const user = await this.__fetchUser(groupId);
66+
const user = await this.__fetchUser(userGroupId);
6767
if (user) {
6868
return user;
6969
}

0 commit comments

Comments
 (0)