Additional logging to debug extra pvs
This commit is contained in:
parent
631163ec02
commit
8835559ae5
1 changed files with 1 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ module Job
|
|||
end
|
||||
def self.create_visibilities(post, recipient_user_ids)
|
||||
aspects = Aspect.where(:user_id => recipient_user_ids).joins(:contacts).where(:contacts => {:person_id => post.author_id}).select('aspects.id, aspects.user_id')
|
||||
Rails.logger.info(:event => :rlb_aspects, :aspect_ids => aspects.map{|a| a.id}.join(','))
|
||||
aspects.each do |aspect|
|
||||
begin
|
||||
PostVisibility.create(:aspect_id => aspect.id, :post_id => post.id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue