mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
chore: eslint prefer-template
This commit is contained in:
committed by
Julian Lam
parent
4ee0f1459d
commit
707b55b6a5
@@ -69,14 +69,14 @@ pagination.create = function (currentPage, pageCount, queryObj) {
|
||||
if (currentPage < pageCount) {
|
||||
data.rel.push({
|
||||
rel: 'next',
|
||||
href: '?' + qs.stringify({ ...queryObj, page: next }),
|
||||
href: `?${qs.stringify({ ...queryObj, page: next })}`,
|
||||
});
|
||||
}
|
||||
|
||||
if (currentPage > 1) {
|
||||
data.rel.push({
|
||||
rel: 'prev',
|
||||
href: '?' + qs.stringify({ ...queryObj, page: previous }),
|
||||
href: `?${qs.stringify({ ...queryObj, page: previous })}`,
|
||||
});
|
||||
}
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user