fix: дубликат username теперь дает 500
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user