Fixed typos in model searches

This commit is contained in:
2025-07-14 13:53:50 -04:00
parent 10298cbf7c
commit 293098e173
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