delete benchmark record from DB instead of marking it as deleted
This commit is contained in:
parent
48516bc2fe
commit
c7c4208f63
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user