mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Refactor media type references in View.razor.cs for consistency
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
using Aaru.CommonTypes.Metadata;
|
|
||||||
using Aaru.Server.Database.Models;
|
using Aaru.Server.Database.Models;
|
||||||
using BlazorBootstrap;
|
using BlazorBootstrap;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
@@ -70,9 +69,10 @@ public partial class View
|
|||||||
.Skip(1)
|
.Skip(1)
|
||||||
.ToArrayAsync())
|
.ToArrayAsync())
|
||||||
{
|
{
|
||||||
foreach(TestedMedia media in ctx.TestedMedia.Where(d => d.CHS.Id == chs.Id)) media.CHS = master;
|
foreach(CommonTypes.Metadata.TestedMedia media in ctx.TestedMedia.Where(d => d.CHS.Id == chs.Id))
|
||||||
|
media.CHS = master;
|
||||||
|
|
||||||
foreach(TestedMedia media in ctx.TestedMedia.Where(d => d.CurrentCHS.Id == chs.Id))
|
foreach(CommonTypes.Metadata.TestedMedia media in ctx.TestedMedia.Where(d => d.CurrentCHS.Id == chs.Id))
|
||||||
media.CurrentCHS = master;
|
media.CurrentCHS = master;
|
||||||
|
|
||||||
ctx.Chs.Remove(chs);
|
ctx.Chs.Remove(chs);
|
||||||
|
|||||||
Reference in New Issue
Block a user