Fixed benchmark form submission error
This commit is contained in:
parent
403ab7f166
commit
39185f1144
@ -56,7 +56,8 @@ func BenchmarkPostCreate(c flamego.Context, form forms.BenchmarkForm, errs bindi
|
|||||||
|
|
||||||
benchmark := models.Benchmark{
|
benchmark := models.Benchmark{
|
||||||
Name: form.Name,
|
Name: form.Name,
|
||||||
Type: form.Type,
|
ScoringType: form.ScoringType,
|
||||||
|
Description: form.Description,
|
||||||
}
|
}
|
||||||
|
|
||||||
_ = models.DB.Create(&benchmark)
|
_ = models.DB.Create(&benchmark)
|
||||||
|
Loading…
Reference in New Issue
Block a user