feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
15.04k stars 751 forks source link

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

Closed myriads-dev closed 1 year ago

myriads-dev commented 1 year ago

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.

daffl commented 1 year ago

Thank you!