chore: eslint prefer-template

This commit is contained in:
Peter Jaszkowiak
2021-02-03 23:59:08 -07:00
committed by Julian Lam
parent 4ee0f1459d
commit 707b55b6a5
357 changed files with 2425 additions and 2427 deletions

View File

@@ -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;