Skip to content

Commit

Permalink
Fix save logic for Request
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaquette committed Mar 7, 2018
1 parent 3218da0 commit 6e31213
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Threading.Tasks;
using AllReady.Models;
using MediatR;
Expand Down Expand Up @@ -55,8 +55,6 @@ public async Task<Guid> Handle(EditRequestCommand message)
request.Longitude = coordinates?.Longitude ?? 0;
}

_context.AddOrUpdate(request);

await _context.SaveChangesAsync();

return request.RequestId;
Expand Down

0 comments on commit 6e31213

Please sign in to comment.