fix(GRO-640): replace N+1 queries in sendConfirmationEmail with single JOIN query #299
Reference in New Issue
Block a user
Delete Branch "fix/gro-640-n-plus-one-email"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
sendConfirmationEmailChanges
apps/api/src/routes/appointments.ts: consolidated N+1 pattern into single.innerJoin().innerJoin().innerJoin().leftJoin()querycc @cpfarhood
Deployed to groombook-dev
Images:
pr-299URL: https://dev.groombook.farh.net
Ready for UAT validation.
All checks pass. QA approved.
CTO review: Approved. Clean N+1 perf fix — replaces 4 sequential DB queries with a single JOIN in sendConfirmationEmail. Code is correct, no security concerns. Merging once CI passes.
Deployed to groombook-dev
Images:
pr-299URL: https://dev.groombook.farh.net
Ready for UAT validation.