소스 검색

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);
             //UpdateExternalLinks(entity, false);
 
 
+            entity = RunScript(ScriptType.AfterSave, new[] { entity }).First();
             entity.CommitChanges();
             entity.CommitChanges();
 
 
             //CloseSession("Save", false);
             //CloseSession("Save", false);
-
-            entity = RunScript(ScriptType.AfterSave, new[] { entity }).First();
             //}
             //}
             //catch (Exception e)
             //catch (Exception e)
             //{
             //{