mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Added the test button and done a bunch of testing. Almost ready !wip
This commit is contained in:
parent
6005db374a
commit
11442e2ea7
13 changed files with 102 additions and 74 deletions
|
@ -14,7 +14,7 @@ using System;
|
|||
namespace Ombi.Store.Migrations
|
||||
{
|
||||
[DbContext(typeof(OmbiContext))]
|
||||
[Migration("20180322085345_RecentlyAddedLog")]
|
||||
[Migration("20180322204610_RecentlyAddedLog")]
|
||||
partial class RecentlyAddedLog
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
|
@ -440,6 +440,8 @@ namespace Ombi.Store.Migrations
|
|||
|
||||
b.Property<int>("ContentId");
|
||||
|
||||
b.Property<int>("ContentType");
|
||||
|
||||
b.Property<int>("Type");
|
||||
|
||||
b.HasKey("Id");
|
|
@ -16,6 +16,7 @@ namespace Ombi.Store.Migrations
|
|||
.Annotation("Sqlite:Autoincrement", true),
|
||||
AddedAt = table.Column<DateTime>(nullable: false),
|
||||
ContentId = table.Column<int>(nullable: false),
|
||||
ContentType = table.Column<int>(nullable: false),
|
||||
Type = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
|
@ -439,6 +439,8 @@ namespace Ombi.Store.Migrations
|
|||
|
||||
b.Property<int>("ContentId");
|
||||
|
||||
b.Property<int>("ContentType");
|
||||
|
||||
b.Property<int>("Type");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
|
|
@ -40,6 +40,11 @@ namespace Ombi.Store.Repository
|
|||
|
||||
public async Task Update(NotificationTemplates template)
|
||||
{
|
||||
if (Db.Entry(template).State == EntityState.Detached)
|
||||
{
|
||||
Db.Attach(template);
|
||||
Db.Entry(template).State = EntityState.Modified;
|
||||
}
|
||||
await Db.SaveChangesAsync();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue