fix 完成订阅

This commit is contained in:
theluyuan 2023-09-03 17:22:27 +08:00
parent b41a928040
commit 637e2799f2

View File

@ -35,7 +35,8 @@ async function updateSkip(num,id){
// skip = 总集数 设置完成 // skip = 总集数 设置完成
async function updateState(id){ async function updateState(id){
let info = getVideoInfoById(id) let info = await getVideoInfoById(id)
console.log(JSON.stringify(info))
if(info.skip > info.count){ if(info.skip > info.count){
let sql = `update VideoInfo set enable=2 where id=${id}` let sql = `update VideoInfo set enable=2 where id=${id}`
await run(sql) await run(sql)