Skip to content

Commit

Permalink
removed the now not nessesary tumonline ID replacement for the calend…
Browse files Browse the repository at this point in the history
…ar endpoint
  • Loading branch information
CommanderStorm committed May 8, 2024
1 parent 2809b95 commit a9227ce
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/main-api/src/calendar/fetch/connectum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ impl CalendarEntryFetcher for APIRequestor {
start_after: &DateTime<Utc>,
end_before: &DateTime<Utc>,
) -> Result<super::CalendarEntries, crate::BoxedError> {
let tumonline_id = id.replace('.', "");

let sync_start = Utc::now();
let start = Instant::now();
// Make OAuth2 secured request
Expand All @@ -41,9 +39,7 @@ impl CalendarEntryFetcher for APIRequestor {
.access_token()
.secret()
.clone();
let url = format!(
"https://campus.tum.de/tumonline/co/connectum/api/rooms/{tumonline_id}/calendars"
);
let url = format!("https://campus.tum.de/tumonline/co/connectum/api/rooms/{id}/calendars");

let events: Vec<Event> = self
.client
Expand Down

0 comments on commit a9227ce

Please sign in to comment.