We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0609700 commit dc4d74aCopy full SHA for dc4d74a
src/server/_security.py
@@ -121,9 +121,8 @@ def decorated_function(*args, **kwargs):
121
122
123
def update_key_last_time_used(user):
124
- # TODO: reenable this once cc<-->aws latency issues are sorted out, or maybe do this call asynchronously
125
- return
126
if user:
127
# update last usage for this user's api key to "now()"
+ # TODO: consider making this call asynchronously
128
r = redis.Redis(host=REDIS_HOST, password=REDIS_PASSWORD)
129
r.set(f"LAST_USED/{user.api_key}", datetime.strftime(datetime.now(), "%Y-%m-%d"))
0 commit comments