mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-13 18:16:55 -07:00
Subscribe the user to the request when they vote on it.
This commit is contained in:
parent
cfd0625df4
commit
a93fdc66ac
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,7 @@ namespace Ombi.Core.Engine
|
|||
return new VoteEngineResult { ErrorMessage = "You have already voted!" };
|
||||
}
|
||||
await RemoveCurrentVote(currentVote);
|
||||
await _movieRequestEngine.SubscribeToRequest(requestId, requestType);
|
||||
|
||||
await _voteRepository.Add(new Votes
|
||||
{
|
||||
|
@ -148,6 +149,8 @@ namespace Ombi.Core.Engine
|
|||
}
|
||||
await RemoveCurrentVote(currentVote);
|
||||
|
||||
await _movieRequestEngine.UnSubscribeRequest(requestId, requestType);
|
||||
|
||||
await _voteRepository.Add(new Votes
|
||||
{
|
||||
Date = DateTime.UtcNow,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue