trips) adding package-tours option
This commit is contained in:
@@ -133,6 +133,7 @@ export interface FlightRoute {
|
||||
export interface CreateFlightInput {
|
||||
tripId: string;
|
||||
userId: string;
|
||||
parentId?: string;
|
||||
confirmationNumber?: string;
|
||||
price?: number;
|
||||
currency?: string;
|
||||
@@ -233,9 +234,17 @@ export function createFlight(input: CreateFlightInput): FlightBooking {
|
||||
: 'Flight';
|
||||
|
||||
db.run(
|
||||
`INSERT INTO plans (id, trip_id, user_id, type, status, title, position)
|
||||
VALUES (?, ?, ?, 'transport', ?, ?, ?)`,
|
||||
[planId, input.tripId, input.userId, input.status ?? 'idea', title, position]
|
||||
`INSERT INTO plans (id, trip_id, user_id, type, status, title, parent_id, position)
|
||||
VALUES (?, ?, ?, 'transport', ?, ?, ?, ?)`,
|
||||
[
|
||||
planId,
|
||||
input.tripId,
|
||||
input.userId,
|
||||
input.status ?? 'idea',
|
||||
title,
|
||||
input.parentId ?? null,
|
||||
position
|
||||
]
|
||||
);
|
||||
|
||||
// Create the flight booking
|
||||
|
||||
Reference in New Issue
Block a user