Skip to content

Commit 2f46d6c

Browse files
committed
feat: add logging to createSchedulePresentation and implement API request for scheduling presentations
1 parent 84075fc commit 2f46d6c

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

backend/src/controllers/team.controllers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const createSchedulePresentation = async (
3232
) => {
3333
const userId = req.userId!;
3434
const { teamId, trialDate, officialDate } = req.body;
35+
console.log("teamId, trialDate, officialDate", teamId, trialDate, officialDate);
3536
try {
3637
const result = await teamService.createSchedulePresentation({
3738
userId,

frontend/src/api-requests/team.requests.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,17 @@ class TeamApi {
2828
});
2929
return res.data;
3030
}
31+
static async createSchedulePresentation({
32+
teamId,
33+
trialDate,
34+
officialDate,
35+
}: {
36+
teamId: string;
37+
trialDate: string;
38+
officialDate: string[];
39+
}) {
40+
const res = await privateApi.post(`/teams/present`, { teamId, trialDate, officialDate });
41+
return res.data;
42+
}
3143
}
3244
export default TeamApi;

0 commit comments

Comments
 (0)