fix(be): ignore not found error when deleting task output bucket

This commit is contained in:
Denis Gukov 2022-11-09 22:49:53 +05:00
parent 8d0a27822d
commit cbd441b6fd

View File

@ -122,7 +122,12 @@ func (d *BoltDb) deleteTaskWithOutputs(projectID int, taskID int, tx *bbolt.Tx)
return
}
return tx.DeleteBucket(makeBucketId(db.TaskOutputProps, taskID))
err = tx.DeleteBucket(makeBucketId(db.TaskOutputProps, taskID))
if err == bbolt.ErrBucketNotFound {
err = nil
}
return
}
func (d *BoltDb) DeleteTaskWithOutputs(projectID int, taskID int) error {