Skip to content

Commit

Permalink
change to hash before returning
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcramer committed Jun 21, 2022
1 parent e54ffe0 commit 59c961d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gzr/modules/dashboard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def cat_dashboard(dashboard_id)
data[:dashboard_elements][i][:merge_result] = merge_result
end
end
data[:scheduled_plans] = query_scheduled_plans_for_dashboard(@dashboard_id,"all")&.to_attrs if @options[:plans]
data[:scheduled_plans] = query_scheduled_plans_for_dashboard(@dashboard_id,"all") if @options[:plans]
data
end
end
Expand Down
1 change: 1 addition & 0 deletions lib/gzr/modules/plan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def query_scheduled_plans_for_dashboard(dashboard_id,user_id,fields=nil)
say_error e.message
raise
end
data.map! {|plan| plan.to_attrs}
data
end

Expand Down

0 comments on commit 59c961d

Please sign in to comment.