mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-20 08:25:16 +00:00
Add more flexibility to conservation policy update
This commit is contained in:
@ -357,7 +357,7 @@ pub trait BaseRequestHandler {
|
||||
}
|
||||
|
||||
fn post_positive_u64_opt(&mut self, name: &str) -> Res<Option<u64>> {
|
||||
match self.post_u64(name)? {
|
||||
match self.post_u64_opt(name, 0)? {
|
||||
0 => Ok(None),
|
||||
val => Ok(Some(val))
|
||||
}
|
||||
|
Reference in New Issue
Block a user