Subscribe the user to the request when they vote on it.

pull/2556/head
TidusJar 6 years ago
parent cfd0625df4
commit a93fdc66ac

@ -85,6 +85,7 @@ namespace Ombi.Core.Engine
return new VoteEngineResult { ErrorMessage = "You have already voted!" }; return new VoteEngineResult { ErrorMessage = "You have already voted!" };
} }
await RemoveCurrentVote(currentVote); await RemoveCurrentVote(currentVote);
await _movieRequestEngine.SubscribeToRequest(requestId, requestType);
await _voteRepository.Add(new Votes await _voteRepository.Add(new Votes
{ {
@ -148,6 +149,8 @@ namespace Ombi.Core.Engine
} }
await RemoveCurrentVote(currentVote); await RemoveCurrentVote(currentVote);
await _movieRequestEngine.UnSubscribeRequest(requestId, requestType);
await _voteRepository.Add(new Votes await _voteRepository.Add(new Votes
{ {
Date = DateTime.UtcNow, Date = DateTime.UtcNow,

Loading…
Cancel
Save