Update Customer Registration

This commit is contained in:
aditya.siregar
2025-06-04 23:45:25 +07:00
parent 40b5ab5964
commit b5d6f7ff5b
4 changed files with 4 additions and 0 deletions
@@ -95,6 +95,7 @@ func (s *memberSvc) VerifyOTP(
Email: registration.Email,
PhoneNumber: registration.Phone,
BirthDate: registration.BirthDate,
Password: registration.Password,
}
customerID, err := s.customerSvc.ResolveCustomer(ctx, customerResolution)
@@ -113,6 +113,7 @@ func (s *customerSvc) ResolveCustomer(ctx mycontext.Context, req *entity.Custome
UpdatedAt: constants.TimeNow(),
CustomerID: utils.GenerateMemberID(ctx, 1, lastSeq),
BirthDate: req.BirthDate,
Password: req.Password,
}
customer, err := s.repo.Create(ctx, newCustomer)