Skip to content

Commit

Permalink
fix: resolved conflicts and env
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunyawat Naunnak committed Aug 19, 2024
1 parent 96bbae1 commit 25c9bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/calendar/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function POST(req: NextRequest) {
calendarId: "[email protected]",
requestBody: body,
});
return NextResponse.json({ calendar: data, input: body });
return NextResponse.json({ calendar: (await data).data, input: body });
} catch (error) {
console.error("Error connecting to Google client: ", error);
return NextResponse.error();
Expand Down

0 comments on commit 25c9bf7

Please sign in to comment.