| 113 | } |
| 114 | |
| 115 | func handleClamStatus() { |
| 116 | _ = global.DB.Model(&model.Clam{}).Where("is_executing = ?", true).Updates(map[string]interface{}{"is_executing": false}).Error |
| 117 | _ = global.DB.Model(&model.ClamRecord{}).Where("status = ?", constant.StatusWaiting).Updates(map[string]interface{}{ |
| 118 | "status": constant.StatusFailed, |
| 119 | "message": constant.InterruptedMsg, |
| 120 | }).Error |
| 121 | } |
| 122 | |
| 123 | func handleRecordStatus() { |
| 124 | _ = global.DB.Model(&model.BackupRecord{}).Where("status = ?", constant.StatusWaiting).Updates(map[string]interface{}{ |