perf: only load id digest
This commit is contained in:
parent
8f8b63ac6a
commit
a10a59b265
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ class Cron::OperationsSignatureJob < Cron::CronJob
|
||||||
|
|
||||||
while start_date < last_midnight
|
while start_date < last_midnight
|
||||||
operations = DossierOperationLog
|
operations = DossierOperationLog
|
||||||
|
.select(:id, :digest)
|
||||||
.where(executed_at: start_date...start_date.tomorrow, bill_signature: nil)
|
.where(executed_at: start_date...start_date.tomorrow, bill_signature: nil)
|
||||||
|
|
||||||
BillSignatureService.sign_operations(operations, start_date) if operations.present?
|
BillSignatureService.sign_operations(operations, start_date) if operations.present?
|
||||||
|
|
Loading…
Reference in a new issue