Fix mac app updates (#486)

This commit is contained in:
Henry Wang 2018-08-18 13:11:29 +01:00 committed by DIYgod
parent 3543e4c47c
commit 07abaf9ddd
1 changed files with 4 additions and 1 deletions

View File

@ -18,7 +18,10 @@ module.exports = async (ctx) => {
},
});
const result = res.data.results.apps;
let result = res.data.results.apps;
if (type === 'macapps') {
result = res.data.results.macapps;
}
const item = [];