fix bug where migrations would only run if the service was previously configured

This commit is contained in:
Aiden McClelland
2022-01-19 12:08:35 -07:00
committed by Aiden McClelland
parent badf8c508f
commit 8e5a7ea9a7

View File

@@ -956,9 +956,8 @@ pub async fn install_s9pk<R: AsyncRead + AsyncSeek + Unpin>(
migration.or(prev_migration) migration.or(prev_migration)
}; };
let configured = prev_is_configured let configured = if let Some(f) = viable_migration {
&& if let Some(f) = viable_migration { f.await?.configured && prev_is_configured
f.await?.configured
} else { } else {
false false
}; };