This commit is contained in:
1 parent
94f7a794d8
commit
ec4bdd6ac7
2 files changed
+105
-1
No files matched your search
@@ -423,7 +423,7 @@ func (s *Store) validate() error {
|
||||
func (s *Store) find(ctx context.Context, query string, arg any) (*User, error) {
|
||||
var user User
|
||||
err := s.pool.QueryRow(ctx, query, arg).Scan(
|
||||
&user.ID, &user.Username, &user.Email, &user.PasswordHash, &user.CreatedAt, &user.UpdatedAt,
|
||||
&user.ID, &user.Username, &user.Email, &user.PasswordHash, &user.Role, &user.CreatedAt, &user.UpdatedAt,
|
||||
)
|
||||
if errors.Is(err, pgx.ErrNoRows) {
|
||||
return nil, nil
|
||||
|
||||
Reference in new issue
Block a user