mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-13 07:40:59 +00:00
refactor(server): read the share link's journey entries through Kysely
listPublicEntries changed for #2886, and the repository rules move a touched QueryBuilder call to the entity methods or Kysely. Kysely keeps the method's answer what it was, the stored row as SELECT * reads it, which the entity methods would hand back as entities with a journey reference in place of journey_id. The query-api baseline drops to 8.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
"src/db/repositories/Days.repository.ts": 7,
|
||||
"src/db/repositories/InviteTokens.repository.ts": 3,
|
||||
"src/db/repositories/JourneyBooks.repository.ts": 3,
|
||||
"src/db/repositories/JourneyEntries.repository.ts": 9,
|
||||
"src/db/repositories/JourneyEntries.repository.ts": 8,
|
||||
"src/db/repositories/JourneyPhotos.repository.ts": 6,
|
||||
"src/db/repositories/Journeys.repository.ts": 4,
|
||||
"src/db/repositories/JourneyShareTokens.repository.ts": 4,
|
||||
|
||||
Reference in New Issue
Block a user