aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/UserService.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-04 16:54:20 +0800
committer杨宇千 <crupest@outlook.com>2019-08-04 16:54:20 +0800
commit6a8f6e48daa3ec101fa770ba96240f406b436a0b (patch)
treee9120e9537f045d0ba7238c536c6549e9e6c1cf5 /Timeline/Services/UserService.cs
parent7f7fdd4d3d72980d575f7e27cea4a2d11c8482a8 (diff)
downloadtimeline-6a8f6e48daa3ec101fa770ba96240f406b436a0b.tar.gz
timeline-6a8f6e48daa3ec101fa770ba96240f406b436a0b.tar.bz2
timeline-6a8f6e48daa3ec101fa770ba96240f406b436a0b.zip
WIP: Need to solve the entity framework problem.
Diffstat (limited to 'Timeline/Services/UserService.cs')
-rw-r--r--Timeline/Services/UserService.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Timeline/Services/UserService.cs b/Timeline/Services/UserService.cs
index 65ac98d3..0d6934ff 100644
--- a/Timeline/Services/UserService.cs
+++ b/Timeline/Services/UserService.cs
@@ -319,11 +319,11 @@ namespace Timeline.Services
if (administrator != null)
{
user.RoleString = IsAdminToRoleString(administrator.Value);
- }
-
- user.Version += 1;
- await _databaseContext.SaveChangesAsync();
- //clear cache
+ }
+
+ user.Version += 1;
+ await _databaseContext.SaveChangesAsync();
+ //clear cache
RemoveCache(user.Id);
}