We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 689cfe9 commit 99e6ec4Copy full SHA for 99e6ec4
app/models/document.rb
@@ -90,7 +90,8 @@ def sync_quip_doc_if_needed
90
91
return unless synced_at.nil? # only schedule if it is for the initial sync
92
93
- return if last_sync_result == 'SCHEDULED' # Prevent duplicate
+ # TODO: improve this dup protection
94
+ return if last_sync_result == 'SCHEDULED' || last_sync_result == 'FAILED' # Prevent duplicate
95
96
self.last_sync_result = 'SCHEDULED'
97
0 commit comments