You've already forked AstralRinth
forked from didirus/AstralRinth
fix version update route perf (#923)
* fix version update route perf * fix tests
This commit is contained in:
@@ -362,7 +362,7 @@ impl AutomatedModerationQueue {
|
||||
for file in
|
||||
files.iter().filter(|x| x.version_id == version.id.into())
|
||||
{
|
||||
if let Some(hash) = file.hashes.get(&"sha1".to_string()) {
|
||||
if let Some(hash) = file.hashes.get("sha1") {
|
||||
if let Some((index, (sha1, _, file_name, _))) = hashes
|
||||
.iter()
|
||||
.enumerate()
|
||||
|
||||
Reference in New Issue
Block a user