Replace req["user"] with req["userEntity"] in session-user.controller #546
Labels
complexity: moderate
Time needed to do this ticket will be moderate e.g. 1-2 days
help wanted
Extra attention is needed
javascript
Pull requests that update Javascript code
maintenance
Maintenance / chore work
priority: soon
Should be prioritized soon.
state: approved
Ready to go. Not blocked or pending.
Milestone
Overview
Take a read through the umbrella ticket. As a sub task to this ticket we want to phase out the use of
req["user"]
from the session-user.controller.ts. The endpoints that need addressing are POST /session-user, POST /session-user/complete, POST /session-user/incomplete. Note that we haven't followed rest patterns here and hopefully this will be refactored at a later date but not part of this ticket.Action Items
req["user"]
, the service methods will need to be refactored to take thereq["userEntity"]
rather thanreq["user"]
. This means the service methods will be taking userEntity rather thanGetUserDto
as its argument. The types need to be updated in the service method and adjustments will need to be made if they are used elsewhere.The text was updated successfully, but these errors were encountered: