We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 974a86c + efb650d commit 0e82c73Copy full SHA for 0e82c73
src/Infrastructure/BotSharp.Core/Users/Services/UserService.cs
@@ -206,7 +206,12 @@ public async Task<User> GetMyProfile()
206
{
207
var db = _services.GetRequiredService<IBotSharpRepository>();
208
User user = default;
209
- if (_user.UserName != null)
+
210
+ if (_user.Id != null)
211
+ {
212
+ user = db.GetUserById(_user.Id);
213
+ }
214
+ else if (_user.UserName != null)
215
216
user = db.GetUserByUserName(_user.UserName);
217
}
0 commit comments