Исправления после общей проверки работоспособности
This commit is contained in:
+14
@@ -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();
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user