fix npm_mode check from raw_deps

This commit is contained in:
Ruben Fiszel
2024-07-25 12:57:57 +02:00
parent 7102dd81c0
commit d87ae08362
@@ -241,7 +241,10 @@ pub async fn handle_dependency_job<R: rsmq_async::RsmqConnection + Send + Sync +
Some(
job.args
.as_ref()
.map(|x| x.get("npm_mode").is_some())
.map(|x| {
x.get("npm_mode")
.is_some_and(|y| y.to_string().as_str() == "true")
})
.unwrap_or(false),
)
} else {