mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-13 01:56:55 -07:00
merge
This commit is contained in:
commit
e24ad04be9
166 changed files with 10901 additions and 1058 deletions
|
@ -9,14 +9,14 @@ using Ombi.Store.Entities.Requests;
|
|||
|
||||
namespace Ombi.Store.Repository.Requests
|
||||
{
|
||||
public class TvRequestRepository : BaseRepository<TvRequests, IOmbiContext>, ITvRequestRepository
|
||||
public class TvRequestRepository : BaseRepository<TvRequests, OmbiContext>, ITvRequestRepository
|
||||
{
|
||||
public TvRequestRepository(IOmbiContext ctx) : base(ctx)
|
||||
public TvRequestRepository(OmbiContext ctx) : base(ctx)
|
||||
{
|
||||
Db = ctx;
|
||||
}
|
||||
|
||||
public IOmbiContext Db { get; }
|
||||
public OmbiContext Db { get; }
|
||||
|
||||
public async Task<TvRequests> GetRequestAsync(int tvDbId)
|
||||
{
|
||||
|
@ -123,13 +123,6 @@ namespace Ombi.Store.Repository.Requests
|
|||
await InternalSaveChanges();
|
||||
}
|
||||
|
||||
public async Task<TvRequests> Add(TvRequests request)
|
||||
{
|
||||
await Db.TvRequests.AddAsync(request);
|
||||
await InternalSaveChanges();
|
||||
return request;
|
||||
}
|
||||
|
||||
public async Task<ChildRequests> AddChild(ChildRequests request)
|
||||
{
|
||||
await Db.ChildRequests.AddAsync(request);
|
||||
|
@ -138,12 +131,6 @@ namespace Ombi.Store.Repository.Requests
|
|||
return request;
|
||||
}
|
||||
|
||||
public async Task Delete(TvRequests request)
|
||||
{
|
||||
Db.TvRequests.Remove(request);
|
||||
await InternalSaveChanges();
|
||||
}
|
||||
|
||||
public async Task DeleteChild(ChildRequests request)
|
||||
{
|
||||
Db.ChildRequests.Remove(request);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue