|
|
@ -397,8 +397,10 @@ class PostController extends SiteController {
|
|
|
|
const { user: userService } = this.dtp.services;
|
|
|
|
const { user: userService } = this.dtp.services;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
res.locals.pagination = this.getPaginationParameters(req, 20);
|
|
|
|
res.locals.pagination = this.getPaginationParameters(req, 20);
|
|
|
|
res.locals.authors = await userService.getAuthors(res.locals.pagination);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const {authors , totalAuthorCount }= await userService.getAuthors(res.locals.pagination);
|
|
|
|
|
|
|
|
res.locals.authors = authors;
|
|
|
|
|
|
|
|
res.locals.totalAuthorCount = totalAuthorCount;
|
|
|
|
res.render('post/author/all');
|
|
|
|
res.render('post/author/all');
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|
return next(error);
|
|
|
|
return next(error);
|
|
|
|