Use string instead of ID type
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
CREATE TABLE users (
|
||||
id uuid,
|
||||
id char(26),
|
||||
email text,
|
||||
name text,
|
||||
password text
|
||||
|
@ -12,7 +12,7 @@ type UserService struct {
|
||||
}
|
||||
|
||||
// User returns a user for a given id.
|
||||
func (s *UserService) User(id budgeteer.ID) (*budgeteer.User, error) {
|
||||
func (s *UserService) User(id string) (*budgeteer.User, error) {
|
||||
u := &budgeteer.User{ID: id}
|
||||
err := s.DB.Select(&u)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user