mirror of
https://github.com/rustmailer/bichon.git
synced 2026-08-03 07:48:34 +02:00
fix: Folder limit cannot be empty #97
This commit is contained in:
@@ -421,6 +421,12 @@ impl AccountV3 {
|
||||
new.folder_limit = Some(folder_limit);
|
||||
}
|
||||
|
||||
if let Some(clear_folder_limit) = request.clear_folder_limit {
|
||||
if clear_folder_limit {
|
||||
new.folder_limit = None;
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(name) = &request.name {
|
||||
if name.trim().is_empty() {
|
||||
new.name = None;
|
||||
|
||||
Reference in New Issue
Block a user