Skip to content

Commit

Permalink
fix: 🐛 修复定时任务中Token缓存 (#1411)
Browse files Browse the repository at this point in the history
  • Loading branch information
luolu-lg authored Nov 16, 2022
1 parent 997fc05 commit 4ff2781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arkid/common/arkstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ def refresh_admin_uesr_token():
admin_user = User.active_objects.filter(
username='admin', tenant=platform_tenant
).first()
token = ExpiringToken.active_objects.filter(user=admin_user).first()
token = ExpiringToken.objects.filter(user=admin_user).first()
if not token.expired:
return token.token

Expand Down

0 comments on commit 4ff2781

Please sign in to comment.