mirror of
https://github.com/dsec-hub/dsec-discord-bot.git
synced 2026-09-22 15:53:56 +00:00
ensure member is active before receiving member role
This commit is contained in:
parent
b83ba5428d
commit
e9effa4d2d
1 changed files with 1 additions and 0 deletions
|
|
@ -164,6 +164,7 @@ async fn fetch_student(data: &Data, student_id: &str) -> Result<Option<StudentRo
|
||||||
.from("active_members")
|
.from("active_members")
|
||||||
.select("full_name, student_id")
|
.select("full_name, student_id")
|
||||||
.eq("student_id", student_id)
|
.eq("student_id", student_id)
|
||||||
|
.eq("membership_status", "Active")
|
||||||
.execute()
|
.execute()
|
||||||
.await?;
|
.await?;
|
||||||
Ok(student_data.into_iter().next())
|
Ok(student_data.into_iter().next())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue