fmt: not sure how this one slipped by
This commit is contained in:
parent
d1af8a7c1f
commit
1c3ccbecf5
1 changed files with 1 additions and 2 deletions
|
@ -201,7 +201,7 @@ pub mod tools {
|
||||||
|
|
||||||
pub async fn on_role_change(db: &Pool<Sqlite>, ctx: &Context, mut new_data: Member) {
|
pub async fn on_role_change(db: &Pool<Sqlite>, ctx: &Context, mut new_data: Member) {
|
||||||
// check if the role changed is part of the oens for this server
|
// check if the role changed is part of the oens for this server
|
||||||
if let Some(role_adders) = sqlx::query_as::<_, RoleAdder>(
|
if let Ok(role_adders) = sqlx::query_as::<_, RoleAdder>(
|
||||||
r#"
|
r#"
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM roles_adder
|
FROM roles_adder
|
||||||
|
@ -211,7 +211,6 @@ pub mod tools {
|
||||||
.bind(*new_data.guild_id.as_u64() as i64)
|
.bind(*new_data.guild_id.as_u64() as i64)
|
||||||
.fetch_all(db)
|
.fetch_all(db)
|
||||||
.await
|
.await
|
||||||
.ok()
|
|
||||||
{
|
{
|
||||||
let mut roles_add = vec![];
|
let mut roles_add = vec![];
|
||||||
let mut roles_remove = vec![];
|
let mut roles_remove = vec![];
|
||||||
|
|
Loading…
Reference in a new issue