refactor: format

This commit is contained in:
DIYgod
2020-04-14 19:31:37 +08:00
parent c1d7c99e5e
commit a7e153e25e

View File

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