add 删除订阅

This commit is contained in:
2023-07-13 10:05:32 +08:00
parent 54e6932dc2
commit 41d16c43b0
5 changed files with 62 additions and 4 deletions

View File

@@ -18,8 +18,14 @@ async function getSub(){
return list
}
async function delSub(id){
let sql = `delete from VideoInfo where id=${id}`
await run(sql)
}
module.exports = {
addSub,
getSub
getSub,
delSub
}