fix: enterprise create workspace (#9921)

This commit is contained in:
Joe
2024-10-28 11:48:16 +08:00
committed by GitHub
parent aa11141660
commit 9633c5dab6
2 changed files with 7 additions and 3 deletions

View File

@@ -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)