Fixed benchmark form submission error

This commit is contained in:
Gregory Ballantine 2024-05-29 09:13:10 -04:00
parent 403ab7f166
commit 39185f1144

View File

@ -56,7 +56,8 @@ func BenchmarkPostCreate(c flamego.Context, form forms.BenchmarkForm, errs bindi
benchmark := models.Benchmark{
Name: form.Name,
Type: form.Type,
ScoringType: form.ScoringType,
Description: form.Description,
}
_ = models.DB.Create(&benchmark)