mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Fixed #1546
This commit is contained in:
parent
04117329c6
commit
0dfe878893
1 changed files with 5 additions and 0 deletions
|
@ -62,6 +62,11 @@ namespace Ombi.Store.Repository.Requests
|
|||
|
||||
public async Task Update(MovieRequests request)
|
||||
{
|
||||
if (Db.Entry(request).State == EntityState.Detached)
|
||||
{
|
||||
Db.MovieRequests.Attach(request);
|
||||
Db.Update(request);
|
||||
}
|
||||
await Db.SaveChangesAsync();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue