mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fix PR comment
This commit is contained in:
@@ -220,7 +220,7 @@ pub struct ServerInfo {
|
||||
pub keyboard: Option<KeyboardOptions>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, TS)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize, TS)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
#[ts(export)]
|
||||
pub enum RestartReason {
|
||||
|
||||
@@ -84,7 +84,7 @@ pub async fn update_system(
|
||||
.into_status_info()
|
||||
.into_restart()
|
||||
.de()?
|
||||
.is_some()
|
||||
== Some(RestartReason::Update)
|
||||
{
|
||||
return Err(Error::new(
|
||||
eyre!("{}", t!("update.already-updated-restart-required")),
|
||||
@@ -343,7 +343,10 @@ async fn maybe_do_update(
|
||||
.as_status_info_mut()
|
||||
.as_update_progress_mut()
|
||||
.ser(&None)?;
|
||||
server_info.as_status_info_mut().as_restart_mut().ser(&Some(RestartReason::Update))
|
||||
server_info
|
||||
.as_status_info_mut()
|
||||
.as_restart_mut()
|
||||
.ser(&Some(RestartReason::Update))
|
||||
})
|
||||
.await
|
||||
.result?;
|
||||
|
||||
Reference in New Issue
Block a user