core&ui: domain_dashboard: show owner

This commit is contained in:
undefined committed 2023-01-31 14:52:59 +08:00
1 parent c57b304576
commit f5f82cd513
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -111,8 +111,9 @@ class DomainEditHandler extends ManageHandler {
class DomainDashboardHandler extends ManageHandler {
async get() {
const owner = await user.getById(this.domain._id, this.domain.owner);
this.response.template = 'domain_dashboard.html';
this.response.body = { domain: this.domain };
this.response.body = { domain: this.domain, owner };
}
async postInitDiscussionNode({ domainId }) {