Skip to content

PM-1155 - refactor code #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025
Merged

PM-1155 - refactor code #37

merged 1 commit into from
Apr 30, 2025

Conversation

vas3a
Copy link
Collaborator

@vas3a vas3a commented Apr 30, 2025

This is a much needed small refactor. it's mainly file/controller/services renaming & moving dtos & services around so when they're re-used it makes sense and doesn't feel "forbiden".

Eg. we re-used adminService.searchWinnings in all controllers that needed it (user, winnings, admin). Moved it to a shared repo service, so now when you call winningsRepo.searchWinnings it looks & feels right.

Moved DTOs from the shared global dto folder to the respective modules
Created modules for each api domain for more control.

@vas3a vas3a requested a review from kkartunov April 30, 2025 08:58
@vas3a vas3a merged commit f4e6eba into dev Apr 30, 2025
1 check failed
@vas3a vas3a deleted the PM-1155_code-refactor branch April 30, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant