Closed negreirosleo closed 9 months ago
This PR changes the rest of the files in /infra to use the factory pattern:
// from getSomething = async (apiClient: apiClient) => {} // to makeGetSomething = (apiClient: apiClient) => async () => {}
This change is to ensure that all functions that depend on an apiClient will receive the argument the same way, to make it standardized.
This PR changes the rest of the files in /infra to use the factory pattern:
This change is to ensure that all functions that depend on an apiClient will receive the argument the same way, to make it standardized.