refactor(accommodations): stays through repositories inside the existing transactions

This commit is contained in:
jubnl
2026-09-23 15:57:51 +02:00
parent 26233434f6
commit 2aeecd98fa
17 changed files with 921 additions and 164 deletions
@@ -31,6 +31,7 @@ import {
createTestTagsRepo, createTestPlaceRatingsRepo, createTestAssignmentParticipantsRepo,
createTestReservationsRepo,
createTestReservationEndpointsRepo,
createTestDayAccommodationsRepo,
} from '../helpers/test-uow';
let svc: DaysService;
@@ -47,6 +48,7 @@ beforeAll(async () => {
await createTestTripsRepo(testDb),
await createTestReservationsRepo(testDb),
await createTestReservationEndpointsRepo(testDb),
await createTestDayAccommodationsRepo(testDb),
);
});
const reorderDays = async (tripId: number, orderedIds: number[]) => await svc.reorder(tripId, orderedIds);