Update user_queries.rs

This commit is contained in:
Bryan Stitt 2022-10-20 10:43:31 -07:00 committed by GitHub
parent 17cac2d726
commit 4f1885306f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ fn get_user_key_id_from_params(
params: &HashMap<String, String>,
) -> anyhow::Result<u64> {
if user_id > 0 {
params.get("user_key").map_or_else(
params.get("user_key_id").map_or_else(
|| Ok(0),
|c| {
let c = c.parse()?;