Skip to content
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

refactor: repositories #16038

Merged
merged 1 commit into from
Feb 11, 2025
Merged

refactor: repositories #16038

merged 1 commit into from
Feb 11, 2025

Conversation

jrasm91
Copy link
Contributor

@jrasm91 jrasm91 commented Feb 11, 2025

Refactor more repositories to use the new pattern.

@@ -93,6 +95,14 @@ class BaseModule implements OnModuleInit, OnModuleDestroy {
this.jobRepository.startWorkers();
}

this.eventRepository.setAuthFn(async (client) =>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EventRepository can't reference AuthService directly anymore, otherwise it causes a circular dependency, so I moved it here and hooked it up via a callback.

AuthService => BaseService => EventRepository.

@jrasm91 jrasm91 merged commit 5f3a42a into main Feb 11, 2025
38 checks passed
@jrasm91 jrasm91 deleted the refactor/repositories branch February 11, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants