add users

This commit is contained in:
Aditya Siregar
2025-08-08 00:32:05 +07:00
parent fe4f17b34d
commit c18e915d1e
3 changed files with 5 additions and 3 deletions
+1 -2
View File
@@ -73,8 +73,7 @@ func (s *UserServiceImpl) GetUserByEmail(ctx context.Context, email string) (*co
func (s *UserServiceImpl) ListUsers(ctx context.Context, req *contract.ListUsersRequest) (*contract.ListUsersResponse, error) {
page, limit := transformer.PaginationToRequest(req.Page, req.Limit)
organizationID := uuid.New()
userResponses, totalCount, err := s.userProcessor.ListUsers(ctx, organizationID, page, limit)
userResponses, totalCount, err := s.userProcessor.ListUsers(ctx, *req.OrganizationID, page, limit)
if err != nil {
return nil, err
}