添加cid执行成功失败时间更新

This commit is contained in:
junleea 2025-12-14 15:55:45 +08:00
parent 0c5cb83f69
commit 832443e1d2
1 changed files with 2 additions and 2 deletions

View File

@ -41,13 +41,13 @@ func GetDB() *gorm.DB {
func UpdateCIDLastSuccessTime(id int) error {
db := GetDB()
res := db.Exec("UPDATE SET last_success = now() where id = ?", id)
res := db.Exec("UPDATE c_ids SET last_success = now() where id = ?", id)
return res.Error
}
func UpdateCIDLastFailureTime(id int) error {
db := GetDB()
res := db.Exec("UPDATE SET last_fail = now() where id = ?", id)
res := db.Exec("UPDATE c_ids SET last_fail = now() where id = ?", id)
return res.Error
}