(_ context.Context, userID string)
| 111 | } |
| 112 | |
| 113 | func (s *sqlDatabase) GetUserByID(_ context.Context, userID string) (params.User, error) { |
| 114 | dbUser, err := s.getUserByID(s.conn, userID) |
| 115 | if err != nil { |
| 116 | return params.User{}, fmt.Errorf("error fetching user: %w", err) |
| 117 | } |
| 118 | return s.sqlToParamsUser(dbUser), nil |
| 119 | } |
| 120 | |
| 121 | func (s *sqlDatabase) UpdateUser(_ context.Context, user string, param params.UpdateUserParams) (params.User, error) { |
| 122 | var err error |
nothing calls this directly
no test coverage detected