Update user_queries.rs
This commit is contained in:
parent
17cac2d726
commit
4f1885306f
@ -61,7 +61,7 @@ fn get_user_key_id_from_params(
|
|||||||
params: &HashMap<String, String>,
|
params: &HashMap<String, String>,
|
||||||
) -> anyhow::Result<u64> {
|
) -> anyhow::Result<u64> {
|
||||||
if user_id > 0 {
|
if user_id > 0 {
|
||||||
params.get("user_key").map_or_else(
|
params.get("user_key_id").map_or_else(
|
||||||
|| Ok(0),
|
|| Ok(0),
|
||||||
|c| {
|
|c| {
|
||||||
let c = c.parse()?;
|
let c = c.parse()?;
|
||||||
|
Loading…
Reference in New Issue
Block a user