c4efe4453b
- ✅ - ✅ - ✅
12 lines
341 B
TypeScript
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);
|
|
},
|
|
};
|