mirror of
https://github.com/dsec-hub/dsec-discord-bot.git
synced 2026-09-22 07:44:26 +00:00
ensure member is active before receiving member role (#4)
This commit is contained in:
parent
b83ba5428d
commit
88e50b1dc4
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")
|
||||
.select("full_name, student_id")
|
||||
.eq("student_id", student_id)
|
||||
.eq("membership_status", "Active")
|
||||
.execute()
|
||||
.await?;
|
||||
Ok(student_data.into_iter().next())
|
||||
|
|
|
|||
Loading…
Reference in a new issue