- delete clippy.toml (too-many-arguments-threshold=20 hack) - ChannelRow/MediaItemRow/LibraryItemRow structs for from_persistence - SnapshotId/ActivityEventId/PlaybackRecordId newtypes - DomainError variants use ChannelId/UserId instead of Uuid - ActivityEvent.channel_id: Option<ChannelId> not Option<Uuid> - InMemory repos key on newtype IDs - AlgorithmicParams struct for schedule engine - update all adapters/application/presentation callers
14 lines
344 B
Rust
14 lines
344 B
Rust
use domain::models::Channel;
|
|
use domain::DomainResult;
|
|
|
|
use super::deps::ChannelQueryDeps;
|
|
use super::queries::GetChannelQuery;
|
|
|
|
pub async fn execute(deps: &ChannelQueryDeps, query: GetChannelQuery) -> DomainResult<Option<Channel>> {
|
|
deps.channel_query.find_by_id(query.channel_id).await
|
|
}
|
|
|
|
#[cfg(test)]
|
|
#[path = "tests/get.rs"]
|
|
mod tests;
|