File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ def authenticate
119
119
ticket = QBWC . storage_module ::Session . new ( username , company_file_path ) . ticket
120
120
session = get_session ( ticket )
121
121
122
- if !QBWC . pending_jobs ( company_file_path , session ) . present ?
122
+ if !session . pending_jobs . any ?
123
123
QBWC . logger . info "Authentication of user '#{ username } ' succeeded, but no jobs pending for '#{ company_file_path } '."
124
124
company_file_path = AUTHENTICATE_NO_WORK
125
125
else
Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ def destroy
109
109
@@session = nil
110
110
end
111
111
112
+ def pending_jobs
113
+ @pending_jobs ||= QBWC . pending_jobs ( @company , self )
114
+ end
115
+
112
116
protected
113
117
114
118
attr_accessor :current_job , :iterator_id
@@ -122,10 +126,6 @@ def reset(reset_job = false)
122
126
return self . current_job
123
127
end
124
128
125
- def pending_jobs
126
- @pending_jobs ||= QBWC . pending_jobs ( @company , self )
127
- end
128
-
129
129
def complete_with_success
130
130
QBWC . session_complete_success . call ( self ) if QBWC . session_complete_success
131
131
end
You can’t perform that action at this time.
0 commit comments