mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-07 13:41:13 -07:00
More fixed for EF core
This commit is contained in:
parent
4f9579e7bf
commit
6c3ae89ca0
8 changed files with 16 additions and 14 deletions
|
@ -136,7 +136,7 @@ namespace Ombi.Core.Engine
|
|||
{
|
||||
var user = await GetUser();
|
||||
var existingSub = await _subscriptionRepository.GetAll().FirstOrDefaultAsync(x =>
|
||||
x.UserId.Equals(user.Id) && x.RequestId == requestId && x.RequestType == type);
|
||||
x.UserId == user.Id && x.RequestId == requestId && x.RequestType == type);
|
||||
if (existingSub != null)
|
||||
{
|
||||
return;
|
||||
|
@ -155,7 +155,7 @@ namespace Ombi.Core.Engine
|
|||
{
|
||||
var user = await GetUser();
|
||||
var existingSub = await _subscriptionRepository.GetAll().FirstOrDefaultAsync(x =>
|
||||
x.UserId.Equals(user.Id) && x.RequestId == requestId && x.RequestType == type);
|
||||
x.UserId == user.Id && x.RequestId == requestId && x.RequestType == type);
|
||||
if (existingSub != null)
|
||||
{
|
||||
await _subscriptionRepository.Delete(existingSub);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue