feat: update product key generation to include compression in repository API

This commit is contained in:
2025-08-17 11:47:21 +03:00
parent fb1be5ddc3
commit e9f46d7b14
3 changed files with 3 additions and 3 deletions

View File

@@ -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 {

View File

@@ -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) {

View File

@@ -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