Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Commit

Permalink
hotfix: missed updated on EF
Browse files Browse the repository at this point in the history
  • Loading branch information
FrediKats committed Sep 4, 2022
1 parent bcbf788 commit 935f321
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public async Task<Response> Handle(Command request, CancellationToken cancellati
_context.Users.Update(student.User);

await _context.SaveChangesAsync(cancellationToken);

return new Response();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public async Task<Response> Handle(Command request, CancellationToken cancellati

GithubUserAssociation githubUserAssociation = student.User.Associations.OfType<GithubUserAssociation>().Single();
student.User.RemoveAssociation(githubUserAssociation);
_context.Users.Update(student.User);
_context.UserAssociations.Remove(githubUserAssociation);

await _context.SaveChangesAsync(cancellationToken);

return new Response();
Expand Down

0 comments on commit 935f321

Please sign in to comment.