refactor: format

This commit is contained in:
DIYgod 2020-01-17 10:54:10 +08:00
parent 6138bbc9c1
commit 48a1567a53
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ module.exports = async (ctx) => {
},
headers: getCustomRequestHeaders(),
});
const books = response.data.data || {};
const books = response.data.data || [];
const item = books
.filter((item) => item.type === 'book')