fix: strip unknown channels from categories (fixes #201)

This commit is contained in:
Paul Makles
2022-09-12 21:39:29 +01:00
parent 044d82d566
commit 86ad72b426
5 changed files with 12 additions and 41 deletions

View File

@@ -1,5 +1,3 @@
use std::collections::HashSet;
use crate::models::channel::{Channel, FieldsChannel, PartialChannel};
use crate::{OverrideField, Result};
@@ -55,7 +53,4 @@ pub trait AbstractChannel: Sync + Send {
role: &str,
permissions: OverrideField,
) -> Result<()>;
/// Validate existence of channels
async fn check_channels_exist(&self, channels: &HashSet<String>) -> Result<bool>;
}