change rank function

This commit is contained in:
peter
2020-02-13 18:02:34 +01:00
parent afab6eeb9a
commit de76d37768
+2 -2
View File
@@ -79,7 +79,7 @@ implements FrontworkComponent<UserManagerIfc, UserManagerFeatureIfc>, IUserManag
await this.admin
.knex('users')
.where({
user:user.username
username: user.username
}).update({
rank: rank
})
@@ -87,7 +87,7 @@ implements FrontworkComponent<UserManagerIfc, UserManagerFeatureIfc>, IUserManag
return await this.admin
.knex('users')
.where({
user: user.username
username: user.username
}).first()
}