From a061cf99e0102c398ccde3ac0cc4c9232e17639d Mon Sep 17 00:00:00 2001 From: Shweta kale Date: Fri, 31 Aug 2018 18:18:22 +0530 Subject: [PATCH] minor fix --- app/workers/light/user_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/light/user_worker.rb b/app/workers/light/user_worker.rb index 37e5ac3..992b28c 100644 --- a/app/workers/light/user_worker.rb +++ b/app/workers/light/user_worker.rb @@ -17,7 +17,7 @@ def perform # order_by([:sent_on, :desc]).first if newsletter while number_of_subscribed_users > 0 - user_ids = Light::User.where(is_subscribed: true, :sent_on.nin => [date], , is_blocked: {"$ne" => true}).order_by([:email_id, :asc]).limit(users_in_batch).skip(users_in_batch*current_batch).collect { |user| user.id.to_s } + user_ids = Light::User.where(is_subscribed: true, :sent_on.nin => [date] , is_blocked: {"$ne" => true}).order_by([:email_id, :asc]).limit(users_in_batch).skip(users_in_batch*current_batch).collect { |user| user.id.to_s } #user_ids = Light::User.users_for_opt_in_mail.order_by([:email_id, :asc]).limit(users_in_batch).skip(users_in_batch*current_batch).collect { |user| user.id.to_s } current_batch += 1 number_of_subscribed_users -= users_in_batch