Skip to content
Permalink
Browse files

Merge pull request #208 from Naramsim/master

Fix failures' heatmap when connected to postgres
  • Loading branch information...
hunterlong committed Jul 19, 2019
2 parents e31b8ca + a2f8582 commit 17c633f8bf15c7fb1bfe66ce4127ff6919325114
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/failures.go
@@ -129,7 +129,7 @@ func CountFailures() uint64 {
func (s *Service) TotalFailuresOnDate(ago time.Time) (uint64, error) {
var count uint64
date := ago.UTC().Format("2006-01-02 00:00:00")
dateend := ago.UTC().Format("2006-01-02 23:59:59")
dateend := ago.UTC().Format("2006-01-02") + " 23:59:59"
rows := failuresDB().Where("service = ? AND created_at BETWEEN ? AND ?", s.Id, date, dateend).Not("method = 'checkin'")
err := rows.Count(&count)
return count, err.Error

0 comments on commit 17c633f

Please sign in to comment.
You can’t perform that action at this time.