feat: update product key generation to include compression in repository API
This commit is contained in:
@@ -23,7 +23,7 @@ type apiRepository struct {
|
||||
}
|
||||
|
||||
func GetProductsKey(identifier string) string {
|
||||
return fmt.Sprintf("ozon:products:%s", identifier)
|
||||
return fmt.Sprintf("ozon:products:%s:compressed", identifier)
|
||||
}
|
||||
|
||||
func NewAPIRepository(marketplaceRepository marketplace.Repository) Repository {
|
||||
|
||||
@@ -26,7 +26,7 @@ type apiRepository struct {
|
||||
}
|
||||
|
||||
func GetProductsKey(identifier string) string {
|
||||
return fmt.Sprintf("wb:products:%s", identifier)
|
||||
return fmt.Sprintf("wb:products:%s:compressed", identifier)
|
||||
}
|
||||
|
||||
func (a apiRepository) ParseMarketplace(ctx context.Context, marketplaceId int) (*marketplace.Marketplace, string, error) {
|
||||
|
||||
@@ -40,7 +40,7 @@ func NewAPIRepository(marketplaceRepository marketplace.Repository) Repository {
|
||||
}
|
||||
|
||||
func GetProductKey(identifier string) string {
|
||||
return fmt.Sprintf("ym:products:%s", identifier)
|
||||
return fmt.Sprintf("ym:products:%s:compressed", identifier)
|
||||
}
|
||||
|
||||
// getBusinessID retrieves the business ID for a given marketplace by looking up the campaign
|
||||
|
||||
Reference in New Issue
Block a user