fix: create psuedo id and setup publishing for those tht have opted in
This commit is contained in:
parent
eab146b121
commit
3d02f55241
1 changed files with 7 additions and 0 deletions
|
@ -85,10 +85,17 @@ pub mod runner {
|
|||
data.db
|
||||
.add_captcha_levels(username, &key, &payload.levels)
|
||||
.await?;
|
||||
|
||||
if payload.publish_benchmarks {
|
||||
data.db.analytics_create_psuedo_id_if_not_exists(&key).await?;;
|
||||
}
|
||||
|
||||
|
||||
let mcaptcha_config = MCaptchaDetails {
|
||||
name: payload.description.clone(),
|
||||
key,
|
||||
};
|
||||
|
||||
Ok(mcaptcha_config)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue