sr-npm 1.7.600 → 1.7.602
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.
- package/backend/data.js +3 -2
- package/package.json +1 -1
package/backend/data.js
CHANGED
|
@@ -187,7 +187,7 @@ async function populateCustomFieldsCollection(customFields) {
|
|
|
187
187
|
await wixData.bulkSave(COLLECTIONS.CUSTOM_FIELDS, fieldstoinsert);
|
|
188
188
|
}
|
|
189
189
|
async function populateCustomValuesCollection(customFieldsValues) {
|
|
190
|
-
valuesToinsert=[]
|
|
190
|
+
let valuesToinsert=[]
|
|
191
191
|
for (const fieldId of Object.keys(customFieldsValues)) {
|
|
192
192
|
const valuesMap = customFieldsValues[fieldId] || {};
|
|
193
193
|
for (const valueId of Object.keys(valuesMap)) {
|
|
@@ -198,8 +198,9 @@ async function populateCustomValuesCollection(customFieldsValues) {
|
|
|
198
198
|
totalJobs:customValuesToJobs[valueId].length,
|
|
199
199
|
jobIds:customValuesToJobs[valueId],
|
|
200
200
|
})
|
|
201
|
+
console.log("customValuesToJobs[valueId]",customValuesToJobs[valueId])
|
|
201
202
|
}
|
|
202
|
-
|
|
203
|
+
|
|
203
204
|
}
|
|
204
205
|
await wixData.bulkSave(COLLECTIONS.CUSTOM_VALUES, valuesToinsert);
|
|
205
206
|
}
|