sr-npm 1.7.384 → 1.7.386

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.
@@ -34,6 +34,7 @@ async function fetchPositionsFromSRAPI() {
34
34
  let page = 0;
35
35
  const MAX_PAGES = 30 // Safety limit to prevent infinite loops
36
36
  const companyId = await getCompanyIdFromCMS();
37
+ console.log('companyId = ', companyId);
37
38
  console.log('Starting to fetch all positions with pagination...');
38
39
  let offset=0;
39
40
 
@@ -101,6 +102,7 @@ async function fetchJobDescription(jobId) {
101
102
 
102
103
  async function getCompanyIdFromCMS() {
103
104
  const result = await wixData.query(COLLECTIONS.COMPANY_ID).limit(1).find();
105
+ console.log('result = ', result);
104
106
  if (result.items.length > 0) {
105
107
  return result.items[0].companyId;
106
108
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.384",
3
+ "version": "1.7.386",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {