Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlettmiss committed Apr 21, 2024
1 parent a606977 commit 13f0f81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion server/application/services/petService/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ func (s service) DeletePet(uId uuid.UUID, id uuid.UUID) error {

if err != nil {
// if it's not the owner then check if it's the pet vet
// in this case we don't want to delete the pet but we want to remove the vet
// in this case we don't want to delete the pet but we
//want to remove the vet
if err == pet.ErrNotFound {
return s.removeVet(id)
}
Expand Down
6 changes: 1 addition & 5 deletions server/application/services/userService/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ func New(repo Repository) (Service, error) {
}

func (s service) User(id uuid.UUID) (user.User, error) {
u, err := s.repo.User(id)
if err != nil {
return u, err
}
return u, nil
return s.repo.User(id)
}

func (s service) Users(includeDel bool) ([]user.User, error) {
Expand Down

0 comments on commit 13f0f81

Please sign in to comment.