summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-12 13:08:18 -0500
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-12 13:08:18 -0500
commit0d43b9270677106f3aa37112da1dd0482ed40b55 (patch)
tree24f89bf7bd67dfa94941e5732e1235a229688081 /app/models
parent86cedb082576ceca3522c33c10d367d765e02cf8 (diff)
downloadgitlab-ce-0d43b9270677106f3aa37112da1dd0482ed40b55.tar.gz
Fix CI tests
Diffstat (limited to 'app/models')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index dfd1e54ecf7..82489235a3f 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -354,7 +354,7 @@ class Project < ActiveRecord::Base
join_body = "INNER JOIN (
SELECT project_id, COUNT(*) AS amount
FROM notes
- WHERE created_at >= #{sanitize(since)}
+ WHERE created_at >= #{sanitize(since)}project.ci_commits
GROUP BY project_id
) join_note_counts ON projects.id = join_note_counts.project_id"