Исправления после общей проверки работоспособности

This commit is contained in:
2025-09-15 11:39:24 +04:00
parent 2d55282e3c
commit a3a7578fd9
3 changed files with 16 additions and 2 deletions
@@ -71,6 +71,8 @@ internal class MissingLegacyRemasterProcessor(string legacyId, string remasterId
Entity legacyEntity = GetEntity(LegacyId);
Entity remasterEntity = GetEntity(RemasterId);
TestExist(legacyEntity, remasterEntity);
Context.LegacyRemasters.Add(
new() { LegacyId = legacyEntity.Id, RemasterId = remasterEntity.Id }
);
@@ -83,6 +85,18 @@ internal class MissingLegacyRemasterProcessor(string legacyId, string remasterId
}
}
public void TestExist(Entity legacyEntity, Entity remasterEntity)
{
if (
Context
.LegacyRemasters.AsNoTracking()
.Any(x => x.LegacyId == legacyEntity.Id && x.RemasterId == remasterEntity.Id)
)
{
throw new SilentSkipItemException();
}
}
public void Save()
{
Context.SaveChanges();
@@ -82,7 +82,7 @@ internal abstract class FoundryEnAbstractProcessor<TEntity>(
/// </summary>
public virtual void CheckEntity()
{
string id = Input.GetRequired<string>("id");
string id = Input.GetRequired<string>("_id");
if (Globals.Ignore.Any(s => s == id))
{
@@ -91,7 +91,7 @@
"Mystery": "Oracle",
"Conscious Mind": "Psychic",
"Subconscious Mind": "Psychic",
"Hunters Edge": "Ranger",
"Hunter's Edge": "Ranger",
"Racket": "Rogue",
"Bloodline": "Sorcerer",
"Style": "Swashbuckler",