From 4ec250707310da952c1c6cf9499ab8f8ce8d1136 Mon Sep 17 00:00:00 2001 From: BlackDex Date: Mon, 17 Jul 2023 15:36:54 +0200 Subject: [PATCH] Remove debug code during attachment download There was some debug code during attachment downloads. This produces extra logs not needed or even wanted. --- src/api/web.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/web.rs b/src/api/web.rs index 13637b77..5cdcb15e 100644 --- a/src/api/web.rs +++ b/src/api/web.rs @@ -94,7 +94,7 @@ async fn web_files(p: PathBuf) -> Cached> { #[get("/attachments//?")] async fn attachments(uuid: SafeString, file_id: SafeString, token: String) -> Option { - 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; }