Browse Source

Update nocharge saving logic for older logs to skip validation (#3070)

main
Manny Dinssa 4 days ago committed by GitHub
parent
commit
4cc7c3d506
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      lib/tasks/recalculate_nocharges.rake

2
lib/tasks/recalculate_nocharges.rake

@ -39,7 +39,7 @@ namespace :bulk_update do
log.skip_update_status = true
log.nocharge = log.household_charge
if log.save
if log.save(validate: false)
updated_logs_count += 1
Rails.logger.info "Updated nocharge for log #{log.id}"
else

Loading…
Cancel
Save