summaryrefslogtreecommitdiff
path: root/app/services/projects/fetch_statistics_increment_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/projects/fetch_statistics_increment_service.rb')
-rw-r--r--app/services/projects/fetch_statistics_increment_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/projects/fetch_statistics_increment_service.rb b/app/services/projects/fetch_statistics_increment_service.rb
index b150fd2d9f1..3354a074d1e 100644
--- a/app/services/projects/fetch_statistics_increment_service.rb
+++ b/app/services/projects/fetch_statistics_increment_service.rb
@@ -15,7 +15,7 @@ module Projects
ON CONFLICT (project_id, date) DO UPDATE SET fetch_count = #{table_name}.fetch_count + 1
SQL
- ActiveRecord::Base.connection.execute(increment_fetch_count_sql)
+ ProjectDailyStatistic.connection.execute(increment_fetch_count_sql)
end
private