diff --git a/app/services/users/shixun_service.rb b/app/services/users/shixun_service.rb index da64abd5f..ffe51ff92 100644 --- a/app/services/users/shixun_service.rb +++ b/app/services/users/shixun_service.rb @@ -44,6 +44,7 @@ class Users::ShixunService Rails.logger.info("self_or_admin?: #{self_or_admin?}") Rails.logger.info("user: #{user.id}") Rails.logger.info("User.current.id : #{User.current.id }") + Rails.logger.info("relations : #{relations.map(&:id) }") if self_or_admin? relations = relations.where.not(status: -1) status_filter(relations) @@ -72,6 +73,8 @@ class Users::ShixunService when 'published' then 2 when 'closed' then 3 end + Rails.logger.info("######status: #{status}") + Rails.logger.info("######relations: #{relations.map(&:id}") relations = relations.where(status: status) if status relations end