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

fix(generators): Fix channel/service configuration order for Koa based apps #3230

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

myriads-dev
Copy link
Contributor

@myriads-dev myriads-dev commented Jul 7, 2023

When creating a new app using Koa, the generated app.ts configured app.configure(channels) before app.configure(services). This resulted in service references being unavailable in channels.ts.

This update to the template places the services configuration before channels, allowing services to be referenced in channels as expected.

Previously channels was being configured before services, making service references unavailable in channels.ts. 
Order updated to configure services, then channels.
@daffl daffl changed the title Fix channel/service configuration order for Koa based apps fix(generators): Fix channel/service configuration order for Koa based apps Jul 13, 2023
@daffl daffl merged commit 580344e into feathersjs:dove Jul 13, 2023
2 checks passed
@daffl
Copy link
Member

daffl commented Jul 13, 2023

Thank you!

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.

None yet

2 participants