Browse Source

Change handling of bulk uploads in process, check for negative

pull/2653/head
Manny Dinssa 2 years ago
parent
commit
c63367d24b
  1. 2
      app/models/bulk_upload.rb

2
app/models/bulk_upload.rb

@ -12,7 +12,7 @@ class BulkUpload < ApplicationRecord
after_initialize :generate_identifier, unless: :identifier
scope :visible, -> { where(processing: false) }
scope :visible, -> { where.not(processing: true) }
scope :search_by_filename, ->(filename) { where("filename ILIKE ?", "%#{filename}%") }
scope :search_by_user_name, ->(name) { where(user_id: User.where("name ILIKE ?", "%#{name}%").select(:id)) }

Loading…
Cancel
Save