Leantime/leantime

Move all repo calls from controllers to services

Open

#1532 aperta il 31 mar 2023

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)PHP (957 fork)batch import
Help Wantedgood-first-issue

Metriche repository

Star
 (9827 star)
Metriche merge PR
 (Merge medio 12h 22m) (61 PR mergiate in 30 g)

Descrizione

The controllers should not be calling the repos directly. Instead they should call a service method. The service layer should be the layer calling the repo.

As such the task is to go through all controllers and update repository calls to be service calls. If the method does not exist in the service a wrapper service method should be created.

Guida contributor