with graphql
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user