Skip to content

Commit 8342cb2

Browse files
committed
Forgot to actually call SaveChanges() when dis/reallowing asset
1 parent df55e98 commit 8342cb2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Refresh.Database/GameDatabaseContext.Assets.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ public void SetMainlinePhotoHash(GameAsset asset, string hash) =>
130130
AssetType = type,
131131
Reason = reason,
132132
};
133+
133134
this.DisallowedAssets.Add(disallowed);
135+
this.SaveChanges();
134136
return (disallowed, true);
135137
}
136138

@@ -140,6 +142,7 @@ public bool ReallowAsset(string hash)
140142
if (existing == null) return false;
141143

142144
this.DisallowedAssets.Remove(existing);
145+
this.SaveChanges();
143146
return true;
144147
}
145148

0 commit comments

Comments
 (0)