Final preparation
This commit is contained in:
@ -15,6 +15,13 @@ pub async fn create(
|
||||
.await
|
||||
.can_write_guard()?;
|
||||
|
||||
if params.folder_name.len() > 255 {
|
||||
return Err(GeneralError::message(
|
||||
StatusCode::BAD_REQUEST,
|
||||
"Folder name too long",
|
||||
));
|
||||
}
|
||||
|
||||
let exists = db::folder::name_exists(params.parent_folder_id, ¶ms.folder_name, &pool)
|
||||
.await
|
||||
.handle_internal("Error getting existing names")?;
|
||||
|
Reference in New Issue
Block a user