chore: Add tripId field to Adventure interface and schema

This commit is contained in:
Sean Morley
2024-05-15 21:13:31 +00:00
parent b94fdc7107
commit 126a256253
2 changed files with 57 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ export async function POST(event: RequestEvent): Promise<Response> {
});
}
const { name, location, date, description, activityTypes, rating } =
const { name, location, date, description, activityTypes, rating, tripId } =
body.detailAdventure;
if (!name) {
@@ -134,6 +134,7 @@ export async function POST(event: RequestEvent): Promise<Response> {
type: "planner",
name: name,
location: location || null,
tripId: tripId || null,
date: date || null,
description: description || null,
activityTypes: JSON.stringify(activityTypes) || null,