mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-08-01 16:49:09 +00:00
Oops
This commit is contained in:
parent
caca696f56
commit
9247481dae
1 changed files with 1 additions and 1 deletions
|
@ -987,7 +987,7 @@ async fn post_attachment_v2(
|
|||
}
|
||||
|
||||
let data: AttachmentRequestData = data.into_inner().data;
|
||||
if !data.FileSize < 0 {
|
||||
if data.FileSize < 0 {
|
||||
err!("Attachment size can't be negative")
|
||||
}
|
||||
let attachment_id = crypto::generate_attachment_id();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue