adapted cache duration

This commit is contained in:
Simon
2025-09-09 05:33:12 +00:00
parent 436e33d015
commit c17590ccb3
2 changed files with 22 additions and 21 deletions

View File

@@ -18,7 +18,8 @@ pub struct Channel {
pub categories: Vec<String>, //[],
pub options: Vec<ChannelOption>,
pub nsfw: bool, //true
pub cacheDuration: u32, //Some(86400)
#[serde(skip_serializing_if = "Option::is_none")]
pub cacheDuration: Option<u32>, //Some(86400)
}
#[derive(serde::Serialize)]