Skip to content

Commit

Permalink
DEV UPDATE:Fix bug eoefans_video_page find some deleted banner
Browse files Browse the repository at this point in the history
  • Loading branch information
misakajimmy committed Mar 14, 2023
1 parent 3a50510 commit 47050e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/app/api/idl/eoefans_video_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type EoefansVideoPageResp struct {
Key string `json:"key"`
Name string `json:"name"`
Config string `json:"config"`
Banners []*EoefansVideoPageBannerResp `json:"banners"`
Banners []*EoefansVideoPageBanner `json:"banners"`
Videos []*EoefansVideoPageVideo `json:"videos"`
}

Expand Down
2 changes: 1 addition & 1 deletion internal/repository/eoefans_video_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (impl *EoefansVideoPageMysqlImpl) FindAll() (list []*idl.EoefansVideoPageRe
return nil, err
}
for i := range pageList {
var bannerList []*idl.EoefansVideoPageBannerResp
var bannerList []*idl.EoefansVideoPageBanner
var videoList []*idl.EoefansVideoPageVideo
err = impl.tx.Table(idl.EoefansVideoPageBanner{}.TableName()).
Select("image,url,rank").
Expand Down

0 comments on commit 47050e3

Please sign in to comment.