diff options
author | James Lopez <james@jameslopez.es> | 2016-05-11 12:37:49 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-05-11 12:37:49 +0300 |
commit | 68aca6f6635090a33cf4d96c6dbc7ceab6ac2385 (patch) | |
tree | c617f3dd3bcba3659d884c34a9d6a70de5111cde /app/services/projects | |
parent | 1322c981a0aa0752feb16b95e43a1839094a6262 (diff) |
trying to fix timing issue with import status
Diffstat (limited to 'app/services/projects')
-rw-r--r-- | app/services/projects/create_service.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/services/projects/create_service.rb b/app/services/projects/create_service.rb index a77652480b2..53a16e95f5b 100644 --- a/app/services/projects/create_service.rb +++ b/app/services/projects/create_service.rb @@ -59,6 +59,10 @@ module Projects end end + Project.transaction do + @project.import_start if @project.import? + end + after_create_actions if @project.persisted? @project @@ -95,8 +99,6 @@ module Projects unless @project.group @project.team << [current_user, :master, current_user] end - - @project.import_start if @project.import? end end end |