no migration when config dump is selected

This commit is contained in:
jb-alvarado 2024-07-01 07:43:12 +02:00
parent c8f1b63a9b
commit 1ef2f76b6c

View File

@ -81,9 +81,11 @@ async fn main() -> std::io::Result<()> {
.await
.map_err(|e| io::Error::new(io::ErrorKind::Other, e.to_string()))?;
if let Err(e) = handles::db_migrate(&pool).await {
panic!("{e}");
};
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);