mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
ensure generated doc completed
This commit is contained in:
1 parent
0abf48ddba
commit
42c30bdfd0
3 files changed
+22
-2
No files matched your search
@@ -7,11 +7,15 @@ module Submissions
|
||||
CHECK_COMPLETE_TIMEOUT = 90.seconds
|
||||
|
||||
WaitForCompleteTimeout = Class.new(StandardError)
|
||||
NotCompletedYet = Class.new(StandardError)
|
||||
|
||||
module_function
|
||||
|
||||
def call(submitter)
|
||||
return [] unless submitter
|
||||
|
||||
raise NotCompletedYet unless submitter.completed_at?
|
||||
|
||||
return submitter.documents if ApplicationRecord.uncached { submitter.document_generation_events.complete.exists? }
|
||||
|
||||
events =
|
||||
|
||||
Reference in new issue
Block a user