优化 co-list接口

This commit is contained in:
yulixing 2019-10-15 15:43:33 +08:00
parent 433e15ebf2
commit 4b230ba94c

View File

@ -63,7 +63,7 @@ router.get('/co-list', cors(), async (req, res, next) => {
})
let records = await client.getAsync(key)
records = JSON.parse(records)
records = JSON.parse(records) || []
let result = records.filter(item => {
return item.key === 'co-list'
})