Feat/environment variables in workflow (#6515)
Co-authored-by: JzoNg <jzongcode@gmail.com>
This commit is contained in:
@@ -48,7 +48,7 @@ class Account(UserMixin, db.Model):
|
||||
return self._current_tenant
|
||||
|
||||
@current_tenant.setter
|
||||
def current_tenant(self, value):
|
||||
def current_tenant(self, value: "Tenant"):
|
||||
tenant = value
|
||||
ta = TenantAccountJoin.query.filter_by(tenant_id=tenant.id, account_id=self.id).first()
|
||||
if ta:
|
||||
@@ -62,7 +62,7 @@ class Account(UserMixin, db.Model):
|
||||
return self._current_tenant.id
|
||||
|
||||
@current_tenant_id.setter
|
||||
def current_tenant_id(self, value):
|
||||
def current_tenant_id(self, value: str):
|
||||
try:
|
||||
tenant_account_join = db.session.query(Tenant, TenantAccountJoin) \
|
||||
.filter(Tenant.id == value) \
|
||||
|
Reference in New Issue
Block a user