Conversation
1f331cf to
822ffac
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #810 +/- ##
===========================================
- Coverage 98.53% 98.53% -0.01%
===========================================
Files 344 357 +13
Lines 18969 18848 -121
Branches 1789 1767 -22
===========================================
- Hits 18692 18571 -121
Misses 269 269
Partials 8 8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Code Review - PR #810: Migrate channel API to new routerOverall, this is a solid migration from koa-clay to the new router pattern. The code follows the documented conventions well. I found one potential improvement worth considering: 🟡 Security - Defense in Depth
The subscriptions query doesn't explicitly filter channels by game: const where: FilterQuery<GameChannel> = {
members: {
$some: {
id: aliasId
}
}
}
const channels = await em.repo(GameChannel).find(where)While this is likely safe because const where: FilterQuery<GameChannel> = {
game: ctx.state.game,
members: {
$some: {
id: aliasId
}
}
}This prevents potential issues if the alias loading logic ever changes or if there are edge cases with the ORM's relationship handling. Note: This same pattern exists in the old implementation, so this isn't a regression - but worth fixing while migrating. ✅ All Other Categories
|
822ffac to
f39b60f
Compare
f39b60f to
3382116
Compare
No description provided.