Skip to content

Commit 99e6ec4

Browse files
fix loop (#87)
1 parent 689cfe9 commit 99e6ec4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/models/document.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ def sync_quip_doc_if_needed
9090

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

93-
return if last_sync_result == 'SCHEDULED' # Prevent duplicate
93+
# TODO: improve this dup protection
94+
return if last_sync_result == 'SCHEDULED' || last_sync_result == 'FAILED' # Prevent duplicate
9495

9596
self.last_sync_result = 'SCHEDULED'
9697

0 commit comments

Comments
 (0)