chaynHQ / bloom-backend

Code for the backend / API of the Bloom service
https://bloom.chayn.co/
MIT License
18 stars 30 forks source link

Replaced user with user-entity in session-user #567

Closed leoseg closed 2 months ago

leoseg commented 3 months ago

Replaced req['user'] with req['userEntity'] in controller and changed type from GetUserDto to userEntity in controller and service

Issue link / number:

#546

What changes did you make?

I refactored the session-user controller and service, so req["userEntity"] is taken instead of req["user"] and refactored the datatypes accordingly.

Why did you make the changes?

Because the refactoring is need as subtask to complete this umbrella ticket

Did you run tests?

I run all unit-tests with "yarn test" and all e2e-tests with cypress all with success.