Skip to content

Commit

Permalink
fix loop (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
vswamidass-sfdc authored Oct 23, 2024
1 parent 689cfe9 commit 99e6ec4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def sync_quip_doc_if_needed

return unless synced_at.nil? # only schedule if it is for the initial sync

return if last_sync_result == 'SCHEDULED' # Prevent duplicate
# TODO: improve this dup protection
return if last_sync_result == 'SCHEDULED' || last_sync_result == 'FAILED' # Prevent duplicate

self.last_sync_result = 'SCHEDULED'

Expand Down

0 comments on commit 99e6ec4

Please sign in to comment.