fix: Cannot use files in the user inputs. (#11112)

This commit is contained in:
-LAN-
2024-11-26 13:43:38 +08:00
committed by GitHub
parent 90d5765fb6
commit 8d5a1be227
5 changed files with 12 additions and 6 deletions

View File

@@ -56,8 +56,8 @@ class Account(UserMixin, db.Model):
self._current_tenant = tenant
@property
def current_tenant_id(self):
return self._current_tenant.id
def current_tenant_id(self) -> str | None:
return self._current_tenant.id if self._current_tenant else None
@current_tenant_id.setter
def current_tenant_id(self, value: str):