Skip to content

Commit

Permalink
reordered meilisearch before the db and the calendar in the setup ste…
Browse files Browse the repository at this point in the history
…ps as it does not have a good fallback
  • Loading branch information
CommanderStorm committed Jun 24, 2024
1 parent 4291388 commit 281e2f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/main-api/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ async fn main() -> Result<(), BoxedError> {
.connect(&connection_string())
.await
.unwrap();
#[cfg(not(feature = "skip_db_setup"))]
{
setup::database::setup(&pool).await.unwrap();
setup::database::load_data(&pool).await.unwrap();
}
#[cfg(not(feature = "skip_ms_setup"))]
{
let ms_url =
Expand All @@ -98,6 +93,11 @@ async fn main() -> Result<(), BoxedError> {
setup::meilisearch::setup(&client).await.unwrap();
setup::meilisearch::load_data(&client).await.unwrap();
}
#[cfg(not(feature = "skip_db_setup"))]
{
setup::database::setup(&pool).await.unwrap();
setup::database::load_data(&pool).await.unwrap();
}
calendar::refresh::all_entries(&pool).await;
});

Expand Down

0 comments on commit 281e2f3

Please sign in to comment.