some fixes
This commit is contained in:
@@ -88,6 +88,6 @@ func (rep *WaifuRepository) GetById(id int) (*Waifu, error) {
|
||||
return waifu, err
|
||||
}
|
||||
waifu.Owner = new(User)
|
||||
err = rep.db.Get(waifu, "SELECT * FROM users WHERE id=$1;", int(waifu.OwnerID.Int64))
|
||||
err = rep.db.Get(waifu.Owner, "SELECT * FROM users WHERE id=$1;", int(waifu.OwnerID.Int64))
|
||||
return waifu, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user