move migration to run_args

This commit is contained in:
jb-alvarado 2024-07-04 15:08:32 +02:00
parent 33e7bed1c2
commit 04955e14c6

View File

@ -81,12 +81,6 @@ async fn main() -> std::io::Result<()> {
.await
.map_err(|e| io::Error::new(io::ErrorKind::Other, e.to_string()))?;
if ARGS.dump_advanced.is_none() && ARGS.dump_config.is_none() {
if let Err(e) = handles::db_migrate(&pool).await {
panic!("{e}");
};
}
if let Err(c) = run_args(&pool).await {
exit(c);
}