Skip to content

Commit a424124

Browse files
committed
Implement Interview inviation
1 parent d5f4d67 commit a424124

File tree

1 file changed

+8
-69
lines changed

1 file changed

+8
-69
lines changed

src/redux/actions/applicationStage.ts

Lines changed: 8 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -192,16 +192,14 @@ export const filterStage = (stage: string) => async (dispatch: any) => {
192192
}
193193
}
194194
status
195-
}
196-
status
197-
comments
198-
score
199-
platform
200-
invitationLink
201-
updatedAt
202-
createdAt
203-
}
204-
}`,
195+
comments
196+
score
197+
platform
198+
invitationLink
199+
updatedAt
200+
createdAt
201+
}
202+
}`,
205203
variables: {
206204
stage: stage,
207205
},
@@ -328,65 +326,6 @@ export const sendInterviewInvitations =
328326
}
329327
};
330328

331-
// export const updateInterviewStatuses =
332-
// (interviewId: string, status: string) => async (dispatch: any) => {
333-
// console.log("ATTEMPTING TO UPDATE THE INTERVEIW STATUS:", {
334-
// interviewId,
335-
// status,
336-
// type: typeof interviewId,
337-
// });
338-
339-
// dispatch({
340-
// type: updateInterviewStatus.UPDATE_INTERVIEW_STATUS_LOADING,
341-
// message: "loading",
342-
// });
343-
344-
// try {
345-
// const response = await axios.post("/", {
346-
// query: `mutation UpdateInterviewStatus($input: UpdateInterviewStatusInput!) {
347-
// updateInterviewStatus(input: $input) {
348-
// success
349-
// message
350-
// }
351-
// }`,
352-
// variables: {
353-
// interviewId,
354-
// status,
355-
// },
356-
// });
357-
358-
// console.log("FULL RESPONSE =>>>>>:", response.data);
359-
360-
// if (response.data?.data?.updateInterviewStatus) {
361-
// dispatch({
362-
// type: updateInterviewStatus.UPDATE_INTERVIEW_STATUS_SUCCESS,
363-
// data: response.data.data.updateInterviewStatus,
364-
// });
365-
// toast.success(response.data.data.updateInterviewStatus.message);
366-
// } else if (response.data.errors) {
367-
// const errorMessage = response.data.errors[0].message;
368-
// dispatch({
369-
// type: updateInterviewStatus.UPDATE_INTERVIEW_STATUS_FAIL,
370-
// error: errorMessage,
371-
// });
372-
// toast.error(errorMessage);
373-
// } else {
374-
// dispatch({
375-
// type: updateInterviewStatus.UPDATE_INTERVIEW_STATUS_FAIL,
376-
// error: "No data returned from the server",
377-
// });
378-
// toast.error("Failed to update interview status");
379-
// }
380-
// } catch (error) {
381-
// dispatch({
382-
// type: updateInterviewStatus.UPDATE_INTERVIEW_STATUS_FAIL,
383-
// error: "No data returned from the server",
384-
// });
385-
// console.error(error);
386-
// toast.error("Failed to schedule interview");
387-
// }
388-
// };
389-
390329
export const updateInterviewStatuses =
391330
(interviewId: string, status: string) => async (dispatch: any) => {
392331
dispatch({

0 commit comments

Comments
 (0)