fix: enterprise create workspace (#9921)

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

No files matched your search

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