aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/DatabaseExtensions.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-29 00:17:45 +0800
committercrupest <crupest@outlook.com>2020-01-29 00:17:45 +0800
commitb6043126fae039c58512f60a576b10925b06df4c (patch)
tree480e4e0fa03f0736cfee97876603fdb87d3fd3bd /Timeline/Services/DatabaseExtensions.cs
parent1a653fca9e4e3371dd65782c987a736e2259d66a (diff)
downloadtimeline-b6043126fae039c58512f60a576b10925b06df4c.tar.gz
timeline-b6043126fae039c58512f60a576b10925b06df4c.tar.bz2
timeline-b6043126fae039c58512f60a576b10925b06df4c.zip
...
Diffstat (limited to 'Timeline/Services/DatabaseExtensions.cs')
-rw-r--r--Timeline/Services/DatabaseExtensions.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline/Services/DatabaseExtensions.cs b/Timeline/Services/DatabaseExtensions.cs
index c5c96d8c..e77dd01a 100644
--- a/Timeline/Services/DatabaseExtensions.cs
+++ b/Timeline/Services/DatabaseExtensions.cs
@@ -27,7 +27,7 @@ namespace Timeline.Services
if (!result)
throw new UsernameBadFormatException(username, message);
- var userId = await userDbSet.Where(u => u.Name == username).Select(u => u.Id).SingleOrDefaultAsync();
+ var userId = await userDbSet.Where(u => u.Username == username).Select(u => u.Id).SingleOrDefaultAsync();
if (userId == 0)
throw new UserNotExistException(username);
return userId;