tsk-244: Remove code causing migrations to be ran twice

This commit is contained in:
kdeng00
2025-11-06 12:47:55 -05:00
parent 01b34c9848
commit 620d4c684e
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ pub async fn app() -> axum::Router {
let pool = crate::db::create_pool()
.await
.expect("Failed to create pool");
// TODO: Look into handling this. Seems redundant to run migrations multiple times
crate::db::migrations(&pool).await;
let cors = cors::configure_cors().await;
+2 -2
View File
@@ -9,8 +9,8 @@ async fn main() {
// initialize tracing
tracing_subscriber::fmt::init();
let pool = db::create_pool().await.expect("Failed to create pool");
db::migrations(&pool).await;
// let pool = db::create_pool().await.expect("Failed to create pool");
// db::migrations(&pool).await;
// build our application with a route
let app = config::init::app().await;