Skip to content
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

Closed

Conversation

AshenWijesingha
Copy link
Contributor

232-delete-interview-scheduled-meeting

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`)

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`)

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`)

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

Copy link
Member

@senuravihanjayadeva senuravihanjayadeva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve conflicts

@AshenWijesingha
Copy link
Contributor Author

All done

@senuravihanjayadeva senuravihanjayadeva deleted the 232-delete-interview-scheduled-meeting branch May 20, 2022 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delete Interview scheduled Meeting
2 participants