mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-05-31 23:10:44 +00:00
Set FUOTA deployment completed_at.
This commit is contained in:
parent
27f6d2cf03
commit
71cc1aca74
@ -523,7 +523,6 @@ impl Flow {
|
|||||||
|
|
||||||
info!("Complete FUOTA deployment");
|
info!("Complete FUOTA deployment");
|
||||||
self.job.attempt_count += 1;
|
self.job.attempt_count += 1;
|
||||||
self.fuota_deployment.completed_at = Some(Utc::now());
|
|
||||||
|
|
||||||
if self.fuota_deployment.request_fragmentation_session_status
|
if self.fuota_deployment.request_fragmentation_session_status
|
||||||
== RequestFragmentationSessionStatus::NoRequest
|
== RequestFragmentationSessionStatus::NoRequest
|
||||||
@ -543,6 +542,10 @@ impl Flow {
|
|||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let mut d = self.fuota_deployment.clone();
|
||||||
|
d.completed_at = Some(Utc::now());
|
||||||
|
let _ = fuota::update_deployment(d).await?;
|
||||||
|
|
||||||
Ok(None)
|
Ok(None)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user