huginn_bigcommerce_product_agent 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80abf4633b57aeb958ec7f79f516f860fb099c20e6962de6e4cd0d8d0e1f3f5c
|
4
|
+
data.tar.gz: df57c8f677d590947fc4fce038740adc6d2aba7618acf60eca3c4a9bcaa5700a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 817b6c0d76780bfab457aaf7a6b67693caf97d6d7c581361270adb1ff874cef268a63adf74b52846d7278c4ad02c9d095c230e7af7ffc77ac3572b73a121b505
|
7
|
+
data.tar.gz: a87ce903ed0c6c9c9e47fdb68acefcf1de788f8f6f754d02aa149793bed703846087a324b9c4004a99b5d3d9bf4de83de6dc223a5c59cf451093f4961dad5f22
|
@@ -138,17 +138,20 @@ module Agents
|
|
138
138
|
# ##############################
|
139
139
|
upsert_result = upsert_product(wrapper_sku, product, bc_product, is_digital)
|
140
140
|
bc_product = upsert_result[:product]
|
141
|
-
bc_products[wrapper_sku] = bc_product
|
142
|
-
product_id = bc_products[wrapper_sku]['id']
|
143
141
|
|
144
142
|
# clean up custom/meta fields. there are not batch operations so we might as well do them here.
|
145
143
|
custom_fields_delete = upsert_result[:custom_fields_delete].select {|field| field['name'] != 'related_product_id'}
|
146
144
|
clean_up_custom_fields(custom_fields_delete)
|
147
|
-
update_meta_fields(
|
145
|
+
meta_fields = update_meta_fields(
|
148
146
|
upsert_result[:meta_fields_upsert],
|
149
147
|
upsert_result[:meta_fields_delete],
|
150
148
|
)
|
151
149
|
|
150
|
+
bc_product['meta_fields'] = meta_fields
|
151
|
+
|
152
|
+
bc_products[wrapper_sku] = bc_product
|
153
|
+
product_id = bc_products[wrapper_sku]['id']
|
154
|
+
|
152
155
|
# ##############################
|
153
156
|
# 2. upsert option & option_values
|
154
157
|
# ##############################
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: huginn_bigcommerce_product_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Spizziri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|