Already imported model but still it gives "Cannot find module" error?

Viewed 13

I already import "Admin" model in auth.js from models, and it works fine on localhost, but it gives error when i deployed on server,

this is the error i got on deployed on server... enter image description here

i only got error in Admin, when i add a try catch it not give me any errors but still it not working, and "User" is same as Admin but user works fine nut Admin is not.

(i use User model for user login and createuser and use Admin model for admin login and createadmin)

Here is my structure..

enter image description here

my imported models...

enter image description here

my router for create admin... enter image description here

router for admin login... enter image description here

0 Answers
Related