fix 获取订阅bug

This commit is contained in:
theluyuan 2023-09-03 21:11:46 +08:00
parent c0c122e9ca
commit b2c1c51217

View File

@ -13,7 +13,7 @@ async function addSub(info){
} }
// 获取所有订阅 (不包括已完成) // 获取所有订阅 (不包括已完成)
async function getSub(state){ async function getSub(state = 1){
let sql = `select * from VideoInfo where enable=${state}` let sql = `select * from VideoInfo where enable=${state}`
let list = await getAll(sql) let list = await getAll(sql)
return list return list