get notifications

This commit is contained in:
realaravinth
2021-05-10 15:38:09 +05:30
parent aa0c30f1bd
commit 91ca00ea79
18 changed files with 241 additions and 25 deletions

View File

@@ -250,7 +250,11 @@ pub struct I32Levels {
pub visitor_threshold: i32,
}
async fn get_levels_util(key: &str, username: &str, data: &Data) -> ServiceResult<Vec<I32Levels>> {
async fn get_levels_util(
key: &str,
username: &str,
data: &Data,
) -> ServiceResult<Vec<I32Levels>> {
let levels = sqlx::query_as!(
I32Levels,
"SELECT difficulty_factor, visitor_threshold FROM mcaptcha_levels WHERE