- if (accountModel) {
- return this.getAccountOrChannelHTMLPage(() => new Promise(resolve => resolve(accountModel)), req, res)
- } else {
- const videoChannelModelPromise = VideoChannelModel.loadByNameWithHostAndPopulateAccount(nameWithHost)
- return this.getAccountOrChannelHTMLPage(() => videoChannelModelPromise, req, res)
- }