Skip to content

Commit

Permalink
BC-9104 Fix axios options in course calendar service (#5540)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyedwiper authored and wolfganggreschus committed Feb 26, 2025
1 parent ae89cb3 commit 254f390
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/services/calendar/courseCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@ class CourseCalendarService {
this.app = app;
}

async send(options) {
return axios(options);
}

remove(id, params) {
const userId = (params.query || {}).userId || (params.account || {}).userId || params.payload.userId;
const options = {
uri: `${Configuration.get('CALENDAR_URI')}/scopes/${id}`,
url: `${Configuration.get('CALENDAR_URI')}/scopes/${id}`,
method: 'DELETE',
headers: {
Authorization: userId,
Expand Down

0 comments on commit 254f390

Please sign in to comment.