fix counter

This commit is contained in:
speatzle 2024-05-10 18:13:19 +02:00
parent 13433c2972
commit bf34abf5f8
2 changed files with 6 additions and 7 deletions

View file

@ -9,7 +9,6 @@ import (
"net/http"
"os"
"os/signal"
"strconv"
"time"
"github.com/golang-migrate/migrate/v4"
@ -28,8 +27,8 @@ var funcMap = template.FuncMap{
"sub": sub,
}
func sub(a, b int64) string {
return strconv.FormatInt(a-b, 10)
func sub(a, b int) int {
return a - b
}
var db *pgxpool.Pool