Исправления после общей проверки работоспособности
This commit is contained in:
+14
@@ -71,6 +71,8 @@ internal class MissingLegacyRemasterProcessor(string legacyId, string remasterId
|
|||||||
Entity legacyEntity = GetEntity(LegacyId);
|
Entity legacyEntity = GetEntity(LegacyId);
|
||||||
Entity remasterEntity = GetEntity(RemasterId);
|
Entity remasterEntity = GetEntity(RemasterId);
|
||||||
|
|
||||||
|
TestExist(legacyEntity, remasterEntity);
|
||||||
|
|
||||||
Context.LegacyRemasters.Add(
|
Context.LegacyRemasters.Add(
|
||||||
new() { LegacyId = legacyEntity.Id, RemasterId = remasterEntity.Id }
|
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()
|
public void Save()
|
||||||
{
|
{
|
||||||
Context.SaveChanges();
|
Context.SaveChanges();
|
||||||
|
|||||||
+1
-1
@@ -82,7 +82,7 @@ internal abstract class FoundryEnAbstractProcessor<TEntity>(
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual void CheckEntity()
|
public virtual void CheckEntity()
|
||||||
{
|
{
|
||||||
string id = Input.GetRequired<string>("id");
|
string id = Input.GetRequired<string>("_id");
|
||||||
|
|
||||||
if (Globals.Ignore.Any(s => s == id))
|
if (Globals.Ignore.Any(s => s == id))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -91,7 +91,7 @@
|
|||||||
"Mystery": "Oracle",
|
"Mystery": "Oracle",
|
||||||
"Conscious Mind": "Psychic",
|
"Conscious Mind": "Psychic",
|
||||||
"Subconscious Mind": "Psychic",
|
"Subconscious Mind": "Psychic",
|
||||||
"Hunters Edge": "Ranger",
|
"Hunter's Edge": "Ranger",
|
||||||
"Racket": "Rogue",
|
"Racket": "Rogue",
|
||||||
"Bloodline": "Sorcerer",
|
"Bloodline": "Sorcerer",
|
||||||
"Style": "Swashbuckler",
|
"Style": "Swashbuckler",
|
||||||
|
|||||||
Reference in New Issue
Block a user