package models import ( "fmt" . "git.andr3h3nriqu3s.com/andr3/fyp/logic/utils" ) func modelUpdateStatus(handle *Handle, id string, status int) { _, err := handle.Db.Exec("update models set status = $1 where id = $2", status, id) if err != nil { fmt.Println("Failed to update model status") fmt.Println(err) panic("TODO handle better") } }