Fixed typos in model searches

This commit is contained in:
Gregory Ballantine
2024-05-29 09:16:32 -04:00
parent ab6b94cb5f
commit 9ddf7fa928
4 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,7 @@ import (
func HardwareGetList(t template.Template, data template.Data) {
// add hardwares to template
var hardware []models.Hardware
models.DB.First(&hardware)
models.DB.Find(&hardware)
data["hardware"] = hardware
data["title"] = "List of Hardware"
@ -30,7 +30,7 @@ func HardwareGetView(c flamego.Context, t template.Template, data template.Data)
// find hardware from DB
var hardware models.Hardware
models.DB.Find(&hardware, hardwareID)
models.DB.First(&hardware, hardwareID)
data["hardware"] = hardware
data["title"] = hardware.Name