Files
setrip/server/services/booking.service.ts
T
arifal c4efe4453b -
- 
- 
- 
2026-05-18 18:31:16 +07:00

12 lines
341 B
TypeScript

import { bookingRepo } from "@/server/repositories/booking.repo";
export const bookingService = {
async getByParticipantId(participantId: string) {
return bookingRepo.findByParticipantId(participantId);
},
async getByTripAndUser(tripId: string, userId: string) {
return bookingRepo.findByTripAndUser(tripId, userId);
},
};