Fix delete all from checksum hanging

This commit is contained in:
Deluan
2020-01-13 10:24:44 -05:00
committed by Deluan Quintão
parent 4b08df0725
commit 66e9377795
+1 -1
View File
@@ -52,7 +52,7 @@ func (r *checkSumRepository) Get(id string) (string, error) {
func (r *checkSumRepository) SetData(newSums map[string]string) error {
err := WithTx(func(o orm.Ormer) error {
_, err := Db().QueryTable(&Checksum{}).Filter("id__isnull", false).Delete()
_, err := Db().Raw("delete from checksum").Exec()
if err != nil {
return err
}