feat(inner-api/workspace): include tenant details in CreateWorkspace response (#21636)
This commit is contained in:
parent
28f5c37211
commit
37e19de7ab
1 changed files with 13 additions and 1 deletions
|
|
@ -29,7 +29,19 @@ class EnterpriseWorkspace(Resource):
|
||||||
|
|
||||||
tenant_was_created.send(tenant)
|
tenant_was_created.send(tenant)
|
||||||
|
|
||||||
return {"message": "enterprise workspace created."}
|
resp = {
|
||||||
|
"id": tenant.id,
|
||||||
|
"name": tenant.name,
|
||||||
|
"plan": tenant.plan,
|
||||||
|
"status": tenant.status,
|
||||||
|
"created_at": tenant.created_at.isoformat() + "Z" if tenant.created_at else None,
|
||||||
|
"updated_at": tenant.updated_at.isoformat() + "Z" if tenant.updated_at else None,
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
"message": "enterprise workspace created.",
|
||||||
|
"tenant": resp,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class EnterpriseWorkspaceNoOwnerEmail(Resource):
|
class EnterpriseWorkspaceNoOwnerEmail(Resource):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue