(fuota_deployment_id: Uuid)
| 515 | } |
| 516 | |
| 517 | pub async fn get_device_count(fuota_deployment_id: Uuid) -> Result<i64, Error> { |
| 518 | fuota_deployment_device::dsl::fuota_deployment_device |
| 519 | .select(dsl::count_star()) |
| 520 | .filter( |
| 521 | fuota_deployment_device::dsl::fuota_deployment_id |
| 522 | .eq(fields::Uuid::from(fuota_deployment_id)), |
| 523 | ) |
| 524 | .first(&mut get_async_db_conn().await?) |
| 525 | .await |
| 526 | .map_err(|e| Error::from_diesel(e, "".into())) |
| 527 | } |
| 528 | |
| 529 | pub async fn set_device_timeout_error( |
| 530 | fuota_deployment_id: Uuid, |
no test coverage detected