delete benchmark record from DB instead of marking it as deleted

This commit is contained in:
Erikas 2024-07-05 12:11:18 +03:00
parent 48516bc2fe
commit c7c4208f63

View File

@ -277,7 +277,7 @@ func deleteBenchmark(c *gin.Context) {
} }
// Delete benchmark from DB // Delete benchmark from DB
result = db.Delete(&benchmark) result = db.Unscoped().Delete(&benchmark)
if result.Error != nil { if result.Error != nil {
c.HTML(http.StatusInternalServerError, "error.tmpl", gin.H{ c.HTML(http.StatusInternalServerError, "error.tmpl", gin.H{
"activePage": "error", "activePage": "error",