|
|
|
@ -46,7 +46,7 @@ module Mobile
|
|
|
|
|
issue_expose :issue_praise_count
|
|
|
|
|
expose :issue_journals, using: Mobile::Entities::Journal do |f, opt|
|
|
|
|
|
if f.is_a?(::Issue)
|
|
|
|
|
f.journals.where("notes is not null and notes != ''")
|
|
|
|
|
f.journals.where("notes is not null and notes != ''").reverse
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
expose :has_praise , if: lambda { |instance, options| options[:user] } do |instance, options|
|
|
|
|
|