Use pgxpool instead of pgx directly

This commit is contained in:
Abhishek Shroff
2024-07-24 01:52:05 -07:00
parent 51aea15bf4
commit 1c69ad4a93
5 changed files with 27 additions and 20 deletions

View File

@@ -1,7 +1,6 @@
package command
import (
"context"
"os"
"path"
@@ -77,7 +76,7 @@ func SetupCommand() {
defer func() {
if db != nil {
logrus.Info("Closing datbase connection")
db.Close(context.Background())
db.Close()
}
}()