D
D
DanceMonkeyTime2020-10-05 22:54:14
Node.js
DanceMonkeyTime, 2020-10-05 22:54:14

How can I use one data variable for different NestJS services?

Hello, can someone tell me. I have a controller authwhich is used for registration. The system has two types of users ( recruiterand candidate). They have almost all the data different, except for roleand userId. Depending on the role, I call the desired service

In dtoI indicated CreateRecruiterDtoeither CreateCandidateDto

Perhaps someone will tell you where I'm stupid and what should be fixed ??

controller
5f7b7965e1394025888365.png


Dto
5f7b799709fd7206268809.png


Service
5f7b79bf74043612339601.png


Mistake
5f7b7a0285bcf600838230.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2020-10-05
@vshvydky

... signupdata, you understand everything 1 level up, the type does not match and does not work anymore, I didn’t look further

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question