Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
macgeargear committed Feb 3, 2024
1 parent 1ced6eb commit 7d4b139
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/app/service/pet/pet.service.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,20 +144,13 @@ func (s *Service) Create(in *dto.CreatePetRequest) (result *dto.PetResponse, err
}
}

assignRes, assignErr := s.imageService.AssignPet(&dto.AssignPetRequest{
_, assignErr := s.imageService.AssignPet(&dto.AssignPetRequest{
Ids: in.Images,
PetId: res.Pet.Id,
})
if assignErr != nil {
return nil, assignErr
}
if assignRes.Success == false {
return nil, &dto.ResponseErr{
StatusCode: http.StatusInternalServerError,
Message: constant.InternalErrorMessage,
Data: nil,
}
}

imgRes, imgErrRes := s.imageService.FindByPetId(res.Pet.Id)
if imgErrRes != nil {
Expand Down

0 comments on commit 7d4b139

Please sign in to comment.