Skip to content

Commit

Permalink
Added a log
Browse files Browse the repository at this point in the history
  • Loading branch information
mohdjami committed Nov 26, 2024
1 parent 7939616 commit 09c23aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/api/generate/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export async function POST(req: Request, res: Response) {
createClient(),
getServerUser(),
]);

if (!user) {
return NextResponse.json(
{
Expand Down Expand Up @@ -122,6 +123,7 @@ export async function POST(req: Request, res: Response) {
itinerary: json,
},
});
console.log("userid", user.id);
revalidatePath("/");
return NextResponse.json({ itinerary: json });
} catch (error) {
Expand Down

0 comments on commit 09c23aa

Please sign in to comment.