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