sr-npm 1.7.549 → 1.7.551

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 +1 -2
  2. package/package.json +1 -1
package/backend/data.js CHANGED
@@ -162,7 +162,7 @@ async function insertValuesReference(jobToCustomValues) {
162
162
  await wixData.insertReference(COLLECTIONS.JOBS, JOBS_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES,jobId, items);
163
163
  }
164
164
  }
165
- async function insertJOBSsReference(jobToCustomValues) {
165
+ async function insertJobsReference(jobToCustomValues) {
166
166
  for (const jobId of Object.keys(jobToCustomValues)) {
167
167
  for (const valueId of jobToCustomValues[jobId]) {
168
168
  await wixData.insertReference(COLLECTIONS.CUSTOM_VALUES, CUSTOM_VALUES_COLLECTION_FIELDS.MULTI_REF_JOBS_CUSTOM_VALUES,valueId, jobId);
@@ -419,7 +419,6 @@ async function referenceJobs() {
419
419
  await referenceJobsToField({ referenceField: JOBS_COLLECTION_FIELDS.DEPARTMENT_REF, sourceCollection: COLLECTIONS.AMOUNT_OF_JOBS_PER_DEPARTMENT, jobField: JOBS_COLLECTION_FIELDS.DEPARTMENT });
420
420
  await referenceJobsToField({ referenceField: JOBS_COLLECTION_FIELDS.CITY, sourceCollection: COLLECTIONS.CITIES, jobField: JOBS_COLLECTION_FIELDS.CITY_TEXT });
421
421
  await referenceJobsToField({ referenceField: JOBS_COLLECTION_FIELDS.BRAND_REF, sourceCollection: COLLECTIONS.BRANDS, jobField: JOBS_COLLECTION_FIELDS.BRAND });
422
- await referenceJobsToField({referenceField:JOBS_COLLECTION_FIELDS.CUSTOM_VALUES,sourceCollection:COLLECTIONS.CUSTOM_VALUES,jobField:JOBS_COLLECTION_FIELDS.CUSTOM_VALUES} )
423
422
  console.log("finished referencing jobs");
424
423
  }
425
424
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.549",
3
+ "version": "1.7.551",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {