Fixes #226
Achievements query returns executed proposed actions. Progress graph do not shows the achievements.
This commit is contained in:
@@ -175,10 +175,10 @@
|
||||
grid: {
|
||||
y: {
|
||||
lines: this.goals
|
||||
},
|
||||
x: {
|
||||
lines: this.achievements
|
||||
}
|
||||
//x: {
|
||||
// lines: this.achievements
|
||||
//}
|
||||
},
|
||||
legend: {
|
||||
position: 'right'
|
||||
|
||||
@@ -40,7 +40,7 @@ class ProposalAchievementsQuery
|
||||
.joins(:proposal_dashboard_action)
|
||||
.includes(:proposal_dashboard_action)
|
||||
.where(proposal: proposal, executed_at: start_date.beginning_of_day..end_date.end_of_day)
|
||||
.where(proposal_dashboard_actions: { action_type: 1 })
|
||||
.where(proposal_dashboard_actions: { action_type: 0 })
|
||||
.order(executed_at: :asc)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user