Skip to content

Commit

Permalink
Save state when syncing starts #1357
Browse files Browse the repository at this point in the history
The state of the sync was not saved so in the first request 15 seconds
after triggering a sync the frontend thought the sync was finished and
did not further check on state or completion.
  • Loading branch information
Rafa de la Torre committed Mar 20, 2015
1 parent 0277b55 commit 2703bd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/synchronization/member.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def should_auto_sync?
def run
importer = nil
self.state = STATE_SYNCING
self.store

# First import is a "normal import" so still has no id, then run gets called and will get log first time
# but we need this to fix old logs
Expand Down

0 comments on commit 2703bd2

Please sign in to comment.