feat: customer list

This commit is contained in:
fernanda-one
2024-08-15 22:37:57 +07:00
parent f2029ab5b4
commit b39b791c0e
5 changed files with 38 additions and 2 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ func (s *UserService) Update(ctx mycontext.Context, id int64, userReq *entity.Us
}
//if changed branch
if *userReq.PartnerID > 0 {
if userReq.PartnerID != nil {
branch, err := s.branchRepo.GetBranchByID(ctx, *userReq.PartnerID)
if err != nil {
return nil, err