with graphql

This commit is contained in:
2022-10-04 12:06:00 +02:00
parent 5e9001b998
commit c7f8dc6198
8 changed files with 39 additions and 44 deletions

View File

@@ -7,7 +7,7 @@ pub struct AppConfig {
#[clap(long, env)]
pub token_secret: String,
#[clap(long, env)]
pub port: u32,
pub api_port: u32,
#[clap(long, env)]
pub run_migrations: bool,
#[clap(long, env)]
@@ -15,4 +15,3 @@ pub struct AppConfig {
#[clap(long, env)]
pub cors_origin: String,
}

View File

@@ -25,7 +25,7 @@ impl ConnectionPoolManager {
sqlx::migrate!()
.run(&pool)
.await
.context("error while running database migrations");
.context("error while running database migrations")?;
}
Ok(pool)