16 lines
311 B
Rust
16 lines
311 B
Rust
use domain::DomainResult;
|
|
|
|
use super::deps::AdminDeps;
|
|
use super::queries::GetSettingsQuery;
|
|
|
|
pub async fn execute(
|
|
deps: &AdminDeps,
|
|
_query: GetSettingsQuery,
|
|
) -> DomainResult<Vec<(String, String)>> {
|
|
deps.settings_repo.get_all().await
|
|
}
|
|
|
|
#[cfg(test)]
|
|
#[path = "tests/get_settings.rs"]
|
|
mod tests;
|