浏览代码

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)
             //{