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