sr-npm 1.7.554 → 1.7.555

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/backend/data.js +4 -3
  2. package/package.json +1 -1
package/backend/data.js CHANGED
@@ -173,24 +173,25 @@ async function insertJobsReference(jobToCustomValues) {
173
173
  }
174
174
 
175
175
  async function populateCustomFieldsCollection(customFields) {
176
- console.log("populating custom fields collection");
177
176
  for(const ID of Object.keys(customFields)){
178
177
  await wixData.save(COLLECTIONS.CUSTOM_FIELDS, {
179
178
  title: customFields[ID],
180
179
  _id: ID,
181
180
  });
182
181
  }
183
- console.log("populated custom fields collection successfully");
184
182
  }
185
183
  async function populateCustomValuesCollection(customFieldsValues) {
186
184
  console.log("populating custom values collection");
185
+ console.log("customFieldsValues: ", customFieldsValues);
187
186
  for (const fieldId of Object.keys(customFieldsValues)) {
187
+ console.log("populating custom values for field: ", fieldId);
188
188
  const valuesMap = customFieldsValues[fieldId] || {};
189
189
  for (const valueId of Object.keys(valuesMap)) {
190
+ console.log("populating custom values for value: ", valueId);
190
191
  await wixData.save(COLLECTIONS.CUSTOM_VALUES, {
191
192
  _id: valueId,
192
193
  title: valuesMap[valueId],
193
- customField: fieldId, // reference to CustomFields collection (displays the label)
194
+ // customField: fieldId, // reference to CustomFields collection (displays the label)
194
195
  });
195
196
  }
196
197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.554",
3
+ "version": "1.7.555",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {