-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
delete interview scheduled meeting #232 #245
Conversation
232-delete-interview-scheduled-meeting
@@ -71,6 +71,8 @@ export const fetchMeetingById = async (meetingId: string) => { | |||
export const deleteMeetingPermanently = (meetingId: string) => { | |||
if (meetingId) { | |||
return MeetingModel.findByIdAndDelete(meetingId) | |||
return axios | |||
.delete(`${process.env.MS_MEETING_MANAGER_API}/api/msteams/internalmeeting/meetingId`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
first, call this API then use findByIdAndDelete
@@ -71,6 +71,8 @@ export const fetchMeetingById = async (meetingId: string) => { | |||
export const deleteMeetingPermanently = (meetingId: string) => { | |||
if (meetingId) { | |||
return MeetingModel.findByIdAndDelete(meetingId) | |||
return axios | |||
.delete(`${process.env.MS_MEETING_MANAGER_API}/api/msteams/internalmeeting/meetingId`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
first we have to find if a internal meeting is existed for this speciific meetingId and then call axios.delete
@@ -71,6 +71,8 @@ export const fetchMeetingById = async (meetingId: string) => { | |||
export const deleteMeetingPermanently = (meetingId: string) => { | |||
if (meetingId) { | |||
return MeetingModel.findByIdAndDelete(meetingId) | |||
return axios | |||
.delete(`${process.env.MS_MEETING_MANAGER_API}/api/msteams/internalmeeting/meetingId`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here meetingId is hardcoded. this should be dynamic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve conflicts
All done |
232-delete-interview-scheduled-meeting