mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-12 18:45:41 +00:00
chore: get rid of direct DB init and use db_*
This commit is contained in:
@@ -35,7 +35,7 @@ pub async fn get_captcha(
|
||||
) -> ServiceResult<impl Responder> {
|
||||
let username = id.identity().unwrap();
|
||||
let levels = data
|
||||
.dblib
|
||||
.db
|
||||
.get_captcha_levels(Some(&username), &payload.key)
|
||||
.await?;
|
||||
Ok(HttpResponse::Ok().json(levels))
|
||||
|
||||
Reference in New Issue
Block a user