model fix
This commit is contained in:
parent
ff81fcc1ce
commit
5952c8e320
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ func (r *Repo) getSingleMerch(userUuid, merchUuid string) (merchBundle, error) {
|
|||
|
||||
func (r *Repo) getAllMerch(userUuid string) ([]ListResponse, error) {
|
||||
var list []ListResponse
|
||||
if err := r.db.Where("user_uuid = ?", userUuid).Find(&list).Error; err != nil {
|
||||
if err := r.db.Model(&Merch{}).Where("user_uuid = ?", userUuid).Find(&list).Error; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return list, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue