Skip to content

Commit

Permalink
preview endpoint query parameters are not required and set to the def…
Browse files Browse the repository at this point in the history
…ault
  • Loading branch information
CommanderStorm committed Jan 3, 2025
1 parent f88837b commit 4551923
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/refresh/calendar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pub async fn all_entries(pool: &PgPool) {
}
}

#[tracing::instrument(skip(api,pool))]
#[tracing::instrument(skip(api, pool))]
async fn refresh_events(pool: &PgPool, api: &APIRequestor, mut ids: LimitedVec<LocationKey>) {
debug!("Downloading {len} room-calendars", len = ids.len());
// we want to scrape all ~2k rooms once per hour
Expand All @@ -113,7 +113,7 @@ async fn refresh_events(pool: &PgPool, api: &APIRequestor, mut ids: LimitedVec<L
}
}

#[tracing::instrument(skip(pool,api))]
#[tracing::instrument(skip(pool, api))]
async fn refresh_single(pool: &PgPool, mut api: APIRequestor, id: String) -> anyhow::Result<()> {
let sync_start = chrono::Utc::now();
if let Err(e) = Event::update_last_calendar_scrape_at(pool, &id, &sync_start).await {
Expand Down
1 change: 1 addition & 0 deletions server/src/routes/locations/preview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ impl Display for PreviewFormat {
}

#[derive(Deserialize, Default, Debug, utoipa::IntoParams)]
#[serde(default)]
struct QueryArgs {
#[serde(flatten)]
lang: localisation::LangQueryArgs,
Expand Down

0 comments on commit 4551923

Please sign in to comment.