refactor(db): keep the reservations join in its repository

The joined read moved out to reservation-join.ts as a free function, unlike the other files beside the repositories, which hold row types and leave the statements to the repository. joinedQuery() is back in ReservationsRepository with the cast; the row types it answers with move to reservation-rows.ts, which depends on nothing but the Kysely tables.
This commit is contained in:
Isaias Tavares
2026-11-04 23:31:03 -03:00
parent 4325c145ce
commit e848f343b5
4 changed files with 94 additions and 106 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"scripts/db-call-graph.mjs": 1036,
"scripts/generate-entities.ts": 2259,
"src/db/repositories/Places.repository.ts": 1435,
"src/db/repositories/Reservations.repository.ts": 1563,
"src/db/repositories/Reservations.repository.ts": 1554,
"src/db/repositories/Trips.repository.ts": 1121,
"src/db/repositories/Users.repository.ts": 1445,
"src/nest/atlas/atlas.service.ts": 1177,