添加cid执行成功失败时间更新
This commit is contained in:
parent
0c5cb83f69
commit
832443e1d2
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue