Fix delete all from checksum hanging
This commit is contained in:
parent
4b08df0725
commit
66e9377795
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ func (r *checkSumRepository) Get(id string) (string, error) {
|
||||||
|
|
||||||
func (r *checkSumRepository) SetData(newSums map[string]string) error {
|
func (r *checkSumRepository) SetData(newSums map[string]string) error {
|
||||||
err := WithTx(func(o orm.Ormer) 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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue