Преглед изворни кода

Moved scheduler script before CommitChanges

Kenric Nugteren пре 2 година
родитељ
комит
99c969c2a0
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      InABox.Database/Stores/Store.cs

+ 1 - 2
InABox.Database/Stores/Store.cs

@@ -599,11 +599,10 @@ namespace InABox.Database
 
             //UpdateExternalLinks(entity, false);
 
+            entity = RunScript(ScriptType.AfterSave, new[] { entity }).First();
             entity.CommitChanges();
 
             //CloseSession("Save", false);
-
-            entity = RunScript(ScriptType.AfterSave, new[] { entity }).First();
             //}
             //catch (Exception e)
             //{