优化 co-list接口
This commit is contained in:
parent
433e15ebf2
commit
4b230ba94c
@ -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'
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user