Skip to content

Commit

Permalink
Merge pull request #84 from Code4GovTech/fix/#432/delayed-role-assign…
Browse files Browse the repository at this point in the history
…ment

Remove check on discord_engagement on user login
  • Loading branch information
karntrehan authored Oct 16, 2024
2 parents 46f777e + c487e8b commit e9b448b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ async def hasIntroduced():
await asyncio.sleep(15)
authentication = supaClient.read("contributors_registration", "discord_id", user.id)
print("User has authenticated")
discordEngagement = supaClient.read("discord_engagement", "contributor", user.id)[0]
return discordEngagement["has_introduced"]
return True

try:
await asyncio.wait_for(hasIntroduced(), timeout=300)
Expand Down

0 comments on commit e9b448b

Please sign in to comment.