Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The customer's in the admin panel is not displaying. #7461

Closed
rakshit-Launchpad opened this issue May 26, 2024 · 4 comments
Closed

The customer's in the admin panel is not displaying. #7461

rakshit-Launchpad opened this issue May 26, 2024 · 4 comments

Comments

@rakshit-Launchpad
Copy link

rakshit-Launchpad commented May 26, 2024

Bug report

Describe the bug

I am unable to get the customers in the customer's sections in the admin panel.
They were there before when I started the project file, in between I have extended entities and all, maybe due to that I am not able to get them anymore.

Note: I am able to get the single customer details.

here is the error:

error:   customerRepo.listAndCount is not a function
TypeError: customerRepo.listAndCount is not a function       
    at CustomerService.<anonymous> (R:\aster test\aster-backend 6 working\6\aster-backend\aster\node_modules\@medusajs\medusa\dist\services\customer.js:234:59)
    at step (R:\aster test\aster-backend 6 working\6\aster-backend\aster\node_modules\@medusajs\medusa\dist\services\customer.js:59:23)
    at Object.next (R:\aster test\aster-backend 6 working\6\aster-backend\aster\node_modules\@medusajs\medusa\dist\services\customer.js:40:53)
    at R:\aster test\aster-backend 6 working\6\aster-backend\aster\node_modules\@medusajs\medusa\dist\services\customer.js:34:71
    at new Promise (<anonymous>)
    at __awaiter (R:\aster test\aster-backend 6 working\6\aster-backend\aster\node_modules\@medusajs\medusa\dist\services\customer.js:30:12)
    at CustomerService.listAndCount (R:\aster test\aster-backend 6 working\6\aster-backend\aster\node_modules\@medusajs\medusa\dist\services\customer.js:223:16)
    at R:\aster test\aster-backend 6 working\6\aster-backend\aster\node_modules\@medusajs\medusa\dist\controllers\customers\list-customers.js:81:54
    at step (R:\aster test\aster-backend 6 working\6\aster-backend\aster\node_modules\@medusajs\medusa\dist\controllers\customers\list-customers.js:33:23)
    at Object.next (R:\aster test\aster-backend 6 working\6\aster-backend\aster\node_modules\@medusajs\medusa\dist\controllers\customers\list-customers.js:14:53)
::1 - - [26/May/2024:17:34:39 +0000] "GET /admin/customers HTTP/1.1" 500 86 "-" "PostmanRuntime/7.39.0"

System information

Medusa version (including plugins):
"@medusajs/admin": "7.1.10",
"@medusajs/medusa": "1.20.0",
"@medusajs/medusa-js": "^6.1.7",

Expected behavior

I should have gotten the customers list.

Screenshots

image

Code snippets

I used default medusa admin panel though, but I can get the error using there api as well.
here is the curl:

curl -L -X GET '<BACKEND_URL>/admin/customers' \
-H 'x-medusa-access-token: <API_TOKEN>'

Additional context

If possible please review it as an urgent matter, as I have a project deadline to approach.

@rakshit-Launchpad
Copy link
Author

rakshit-Launchpad commented May 27, 2024

@MedusaNick @olivermrbl

@humbleEwan
Copy link

Extending entities is bugged. Best to avoid that or do a workaround using manual connection tables. (sounds strange, but that is the fastest solution I could find) Create a table that stores the ID of the Entity you wish to extend and place the fields you wish to add into this new table. Now you just have to find the entry associated whit that entity.

Copy link
Contributor

github-actions bot commented Oct 8, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 3 days.

@github-actions github-actions bot added the Stale label Oct 8, 2024
Copy link
Contributor

This issue was closed because it has been stalled for 3 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants