fix postgres repo count

This commit is contained in:
Brad Rydzewski 2017-07-25 15:37:58 -04:00
parent 02a8a2a31f
commit 005a28a638
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ FROM pg_class WHERE relname = 'users'
-- name: count-repos
SELECT count(1)
FROM repo
FROM repos
WHERE repo_active = 1
-- name: count-builds

View file

@ -89,7 +89,7 @@ FROM pg_class WHERE relname = 'users'
var countRepos = `
SELECT count(1)
FROM repo
FROM repos
WHERE repo_active = 1
`