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 await this.admin
.knex('users') .knex('users')
.where({ .where({
user:user.username username: user.username
}).update({ }).update({
rank: rank rank: rank
}) })
@@ -87,7 +87,7 @@ implements FrontworkComponent<UserManagerIfc, UserManagerFeatureIfc>, IUserManag
return await this.admin return await this.admin
.knex('users') .knex('users')
.where({ .where({
user: user.username username: user.username
}).first() }).first()
} }