Explorar o código

Moved scheduler script before CommitChanges

Kenric Nugteren %!s(int64=2) %!d(string=hai) anos
pai
achega
99c969c2a0
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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)
             //{