fix: enterprise create workspace (#9921)
This commit is contained in:
parent
aa11141660
commit
9633c5dab6
2 changed files with 7 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ class EnterpriseWorkspace(Resource):
|
|||
if account is None:
|
||||
return {"message": "owner account not found."}, 404
|
||||
|
||||
tenant = TenantService.create_tenant(args["name"])
|
||||
tenant = TenantService.create_tenant(args["name"], is_from_dashboard=True)
|
||||
TenantService.create_tenant_member(tenant, account, role="owner")
|
||||
|
||||
tenant_was_created.send(tenant)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue