Skip to content

Commit

Permalink
update access_check.py
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Dec 7, 2024
1 parent 96f4064 commit 8477b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/helper/aeon_utils/access_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ async def token_check(user_id, button=None):
user_data.setdefault(user_id, {})
data = user_data[user_id]
# await Database.connect()
data["time"] = await Database().get_token_expiry(user_id)
data["time"] = await Database.get_token_expiry(user_id)
expire = data.get("time")
isExpired = expire is None or (time() - expire) > token_timeout
if isExpired:
Expand Down

0 comments on commit 8477b1b

Please sign in to comment.