refactor: format
This commit is contained in:
parent
c1d7c99e5e
commit
a7e153e25e
|
|
@ -23,7 +23,7 @@ module.exports = async (ctx) => {
|
|||
|
||||
try {
|
||||
// Get total page number
|
||||
const last_page_link = response.headers.link.split(',').find(function(elem) {
|
||||
const last_page_link = response.headers.link.split(',').find(function (elem) {
|
||||
return elem.includes('"last"');
|
||||
});
|
||||
const url_base = last_page_link.match(/<(.*)page=\d*/)[1];
|
||||
|
|
@ -63,7 +63,7 @@ module.exports = async (ctx) => {
|
|||
let index = 0;
|
||||
|
||||
// Generate RSS
|
||||
data.forEach(function(item) {
|
||||
data.forEach(function (item) {
|
||||
const time = new Date();
|
||||
time.setMinutes(time.getMinutes() - index);
|
||||
index++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue