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