still database stuff, fix 3
This commit is contained in:
@ -37,7 +37,7 @@ func (self *DatabaseHandle) GetPersonById(id string) (string, error) {
|
|||||||
|
|
||||||
var person Person
|
var person Person
|
||||||
result := self.dbh.
|
result := self.dbh.
|
||||||
Where("persons.id = ?", id).
|
Where("id = ?", id).
|
||||||
First(&person)
|
First(&person)
|
||||||
|
|
||||||
if result.Error != nil {
|
if result.Error != nil {
|
||||||
|
Reference in New Issue
Block a user