Update Sites
This commit is contained in:
parent
c41485041c
commit
0e5b58ddfb
@ -56,7 +56,7 @@ func (h *Handler) Create(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if !ctx.IsSuperAdmin() {
|
if !ctx.IsAdmin() {
|
||||||
req.PartnerID = ctx.GetPartnerID()
|
req.PartnerID = ctx.GetPartnerID()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -58,13 +58,15 @@ func (s *DiscoveryService) Home(ctx context.Context, search *entity.DiscoverySea
|
|||||||
mustVisits := []entity.MustVisit{}
|
mustVisits := []entity.MustVisit{}
|
||||||
|
|
||||||
for _, siteProduct := range siteProducts {
|
for _, siteProduct := range siteProducts {
|
||||||
mustVisits = append(mustVisits, entity.MustVisit{
|
if siteProduct.Status == "Active" {
|
||||||
Name: siteProduct.SiteName,
|
mustVisits = append(mustVisits, entity.MustVisit{
|
||||||
Price: siteProduct.ProductPrice,
|
Name: siteProduct.SiteName,
|
||||||
Region: siteProduct.Region,
|
Price: siteProduct.ProductPrice,
|
||||||
SiteID: siteProduct.SiteID,
|
Region: siteProduct.Region,
|
||||||
ImageURL: siteProduct.Image,
|
SiteID: siteProduct.SiteID,
|
||||||
})
|
ImageURL: siteProduct.Image,
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
response := &entity.DiscoverySearchResp{
|
response := &entity.DiscoverySearchResp{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user