Skip to content

fix(backend): move vm.controller.ts function logic to vm.service.ts #66

@NicoSerranoP

Description

@NicoSerranoP

The idea is to have the controller file as small as possible and move all the function logic into a different function in vm.controller.ts or verification-monitoring.ts (depending on which functions are being used in the function logic). If the function logic uses vm and verification monitoring services then put the logic in a vm function.

The idea is to use the controller just to get the data validation (DTOs) and then pass all that into a service function. In theory we should not have any extended logic in the controller function.

Source: https://www.reddit.com/r/Nestjs_framework/comments/se7fh1/i_am_new_to_nestjs_i_had_a_question_regarding/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions