refactor(application): strip comments, DRY ownership check + parse_content_type
This commit is contained in:
@@ -5,7 +5,6 @@ use domain::DomainResult;
|
||||
use super::deps::ChannelQueryDeps;
|
||||
use super::queries::GetChannelQuery;
|
||||
|
||||
/// Get a single channel by ID.
|
||||
pub async fn execute(deps: &ChannelQueryDeps, query: GetChannelQuery) -> DomainResult<Option<Channel>> {
|
||||
let channel_id = ChannelId::from(query.channel_id);
|
||||
deps.channel_query.find_by_id(channel_id).await
|
||||
|
||||
Reference in New Issue
Block a user