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:
Maurice
2026-10-29 17:26:21 +01:00
parent c0e951fc8e
commit c14b572038
2 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -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,