mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-02 05:23:14 +00:00
* dependency autoconfig * FE portion --------- Co-authored-by: Aiden McClelland <me@drbonez.dev>
22 lines
544 B
Rust
22 lines
544 B
Rust
use std::time::Duration;
|
|
|
|
use models::ProcedureName;
|
|
|
|
use crate::prelude::*;
|
|
use crate::service::Service;
|
|
|
|
impl Service {
|
|
// TODO: leave here or switch to Actor Message?
|
|
pub async fn properties(&self) -> Result<Value, Error> {
|
|
let container = &self.seed.persistent_container;
|
|
container
|
|
.execute::<Value>(
|
|
ProcedureName::Properties,
|
|
Value::Null,
|
|
Some(Duration::from_secs(30)),
|
|
)
|
|
.await
|
|
.with_kind(ErrorKind::Unknown)
|
|
}
|
|
}
|