fix compilation with no zstd, use correct key, bump 2 deps

Signed-off-by: strawberry <strawberry@pupbrain.dev>
This commit is contained in:
strawberry 2023-11-25 15:46:03 -05:00
parent 0c4604b482
commit 8fffb6ea04
4 changed files with 12 additions and 14 deletions

View file

@ -233,9 +233,9 @@ impl Service {
let path: std::path::PathBuf;
if cfg!(feature = "sha256_media") {
path = services().globals.get_media_file_new(&key);
path = services().globals.get_media_file_new(&thumbnail_key);
} else {
path = services().globals.get_media_file(&key);
path = services().globals.get_media_file(&thumbnail_key);
}
let mut f = File::create(path).await?;
f.write_all(&thumbnail_bytes).await?;