fix compilation with no zstd, use correct key, bump 2 deps
Signed-off-by: strawberry <strawberry@pupbrain.dev>
This commit is contained in:
parent
0c4604b482
commit
8fffb6ea04
4 changed files with 12 additions and 14 deletions
|
@ -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?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue