Skip to content

Commit

Permalink
Remove debug code during attachment download
Browse files Browse the repository at this point in the history
There was some debug code during attachment downloads.
This produces extra logs not needed or even wanted.
  • Loading branch information
BlackDex committed Jul 17, 2023
1 parent ab65d79 commit 4ec2507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async fn web_files(p: PathBuf) -> Cached<Option<NamedFile>> {

#[get("/attachments/<uuid>/<file_id>?<token>")]
async fn attachments(uuid: SafeString, file_id: SafeString, token: String) -> Option<NamedFile> {
let Ok(claims) = dbg!(decode_file_download(&token)) else { return None };
let Ok(claims) = decode_file_download(&token) else { return None };
if claims.sub != *uuid || claims.file_id != *file_id {
return None;
}
Expand Down

0 comments on commit 4ec2507

Please sign in to comment.