fix user profile
This commit is contained in:
parent
974a86cb66
commit
efb650d92a
|
|
@ -206,7 +206,12 @@ public class UserService : IUserService
|
|||
{
|
||||
var db = _services.GetRequiredService<IBotSharpRepository>();
|
||||
User user = default;
|
||||
if (_user.UserName != null)
|
||||
|
||||
if (_user.Id != null)
|
||||
{
|
||||
user = db.GetUserById(_user.Id);
|
||||
}
|
||||
else if (_user.UserName != null)
|
||||
{
|
||||
user = db.GetUserByUserName(_user.UserName);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue