Skip to content

Commit

Permalink
#13 fixed bug with user id
Browse files Browse the repository at this point in the history
  • Loading branch information
ssipakov authored and ssipakov committed Apr 3, 2023
1 parent 659e5e8 commit 3313b6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public override async Task<User> Upsert(User entity)
User? existingUser;
if (entity.TelegramUserInfoId != null)
{
existingUser = await dbSet.SingleOrDefaultAsync(x => x.Id == entity.TelegramUserInfoId);
existingUser = await dbSet.SingleOrDefaultAsync(x => x.TelegramUserInfoId == entity.TelegramUserInfoId);
}
else
{
Expand Down

0 comments on commit 3313b6b

Please sign in to comment.