Sha256: 0e9f1dd4940d8686968c2d785547dcb3ed50972038058bcaec6c9c0fa474889c

Contents?: true

Size: 261 Bytes

Versions: 6

Compression:

Stored size: 261 Bytes

Contents

module Workarea
  class SendReviewRequests
    include Sidekiq::Worker

    def perform
      Review::Request.ready_to_send.each do |request|
        Storefront::ReviewMailer.review_request(request).deliver_now
        request.send!
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
workarea-reviews-3.1.2 app/workers/workarea/send_review_requests.rb
workarea-reviews-3.1.1 app/workers/workarea/send_review_requests.rb
workarea-reviews-3.1.0 app/workers/workarea/send_review_requests.rb
workarea-reviews-3.0.10 app/workers/workarea/send_review_requests.rb
workarea-reviews-3.0.9 app/workers/workarea/send_review_requests.rb
workarea-reviews-3.0.8 app/workers/workarea/send_review_requests.rb