fix: дубликат username теперь дает 500
CI / Go (build + vet + test) (push) Canceled after 0s
CI / Web (build + lint) (push) Canceled after 0s

This commit is contained in:
vantablackTea
2026-09-27 20:19:26 +03:00
parent 5daa88380a
commit f381b4cd14
5 changed files with 3 additions and 20 deletions
+1 -1
View File
@@ -4,8 +4,8 @@ import (
"context"
"errors"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgerrcode"
"github.com/jackc/pgx/v5/pgconn"
)
// AddContact creates a contact relation or returns ErrDuplicate if it exists.
+1 -1
View File
@@ -5,9 +5,9 @@ import (
"errors"
"time"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgerrcode"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
)
// CreateSession adds a new session record.
+1 -1
View File
@@ -4,9 +4,9 @@ import (
"context"
"errors"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgerrcode"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
)
// CreateUser inserts a new user returning the created record or ErrDuplicate on conflict.