mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 18:15:39 +00:00
feat: migrate notifications add, mark_read and get to use db_* traits
This commit is contained in:
@@ -173,22 +173,6 @@ async fn update(
|
||||
data.dblib
|
||||
.delete_traffic_pattern(&username, &msg.key)
|
||||
.await?;
|
||||
// sqlx::query!(
|
||||
// "DELETE FROM mcaptcha_sitekey_user_provided_avg_traffic
|
||||
// WHERE config_id = (
|
||||
// SELECT config_id
|
||||
// FROM
|
||||
// mcaptcha_config
|
||||
// WHERE
|
||||
// key = ($1)
|
||||
// AND
|
||||
// user_id = (SELECT ID FROM mcaptcha_users WHERE name = $2)
|
||||
// );",
|
||||
// &msg.key,
|
||||
// &username,
|
||||
// )
|
||||
// .execute(&data.db)
|
||||
// .await?;
|
||||
|
||||
data.dblib
|
||||
.add_traffic_pattern(&username, &msg.key, &pattern)
|
||||
|
||||
Reference in New Issue
Block a user