Commit 26d09857 authored by crazywoola's avatar crazywoola

feat: remove session

parent e3408156
...@@ -49,8 +49,6 @@ class AccountService: ...@@ -49,8 +49,6 @@ class AccountService:
tenant_account_join = TenantAccountJoin.query.filter_by(account_id=account.id).first() tenant_account_join = TenantAccountJoin.query.filter_by(account_id=account.id).first()
if not tenant_account_join: if not tenant_account_join:
_create_tenant_for_account(account) _create_tenant_for_account(account)
else:
account.current_tenant_id = tenant_account_join.tenant_id
# Update last_active_at if more than 10 minutes have passed # Update last_active_at if more than 10 minutes have passed
if datetime.utcnow() - account.last_active_at > timedelta(minutes=10): if datetime.utcnow() - account.last_active_at > timedelta(minutes=10):
account.last_active_at = datetime.utcnow() account.last_active_at = datetime.utcnow()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment