fix: Cannot use files in the user inputs. (#11112)
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user