application: library bounded context
This commit is contained in:
17
crates/application/src/library/get_sync_status.rs
Normal file
17
crates/application/src/library/get_sync_status.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
use domain::models::LibrarySyncLogEntry;
|
||||
use domain::DomainResult;
|
||||
|
||||
use super::deps::LibraryQueryDeps;
|
||||
use super::queries::GetSyncStatusQuery;
|
||||
|
||||
/// Get the latest sync status per provider.
|
||||
pub async fn execute(
|
||||
deps: &LibraryQueryDeps,
|
||||
_query: GetSyncStatusQuery,
|
||||
) -> DomainResult<Vec<LibrarySyncLogEntry>> {
|
||||
deps.library_query.latest_sync_status().await
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "tests/get_sync_status.rs"]
|
||||
mod tests;
|
||||
Reference in New Issue
Block a user