chore: update backend dependencies

This commit is contained in:
Sam 2023-04-04 04:11:03 +02:00
parent 3e901ae10f
commit d17b43d2a7
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
16 changed files with 294 additions and 279 deletions

View file

@ -9,8 +9,8 @@ import (
"emperror.dev/errors"
"github.com/Masterminds/squirrel"
"github.com/jackc/pgconn"
"github.com/jackc/pgx/v4/pgxpool"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgxpool"
"github.com/mediocregopher/radix/v4"
"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials"
@ -35,7 +35,7 @@ type DB struct {
}
func New() (*DB, error) {
pool, err := pgxpool.Connect(context.Background(), os.Getenv("DATABASE_URL"))
pool, err := pgxpool.New(context.Background(), os.Getenv("DATABASE_URL"))
if err != nil {
return nil, errors.Wrap(err, "creating postgres client")
}