sr-npm 1.7.70 → 1.7.72
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/queries.js +2 -2
- package/package.json +1 -1
- package/pages/careersPage.js +1 -1
package/backend/queries.js
CHANGED
|
@@ -2,7 +2,7 @@ const { items: wixData } = require('@wix/data');
|
|
|
2
2
|
|
|
3
3
|
async function getAllPositions() {
|
|
4
4
|
return wixData
|
|
5
|
-
.query('
|
|
5
|
+
.query('Jobs')
|
|
6
6
|
.limit(1000)
|
|
7
7
|
.find()
|
|
8
8
|
.then(result => result.items);
|
|
@@ -10,7 +10,7 @@ async function getAllPositions() {
|
|
|
10
10
|
|
|
11
11
|
async function getPositionsByField(field, value) {
|
|
12
12
|
return wixData
|
|
13
|
-
.query('
|
|
13
|
+
.query('Jobs')
|
|
14
14
|
.eq(field, value)
|
|
15
15
|
.find()
|
|
16
16
|
.then(result => result.items);
|
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -78,7 +78,7 @@ async function handleUrlParams(_$w) {
|
|
|
78
78
|
|
|
79
79
|
async function handleKeyWordParam(_$w,keyWord) {
|
|
80
80
|
_$w('#searchInput').value = keyWord;
|
|
81
|
-
await _$w("#jobsDataset").setFilter(wixData.
|
|
81
|
+
await _$w("#jobsDataset").setFilter(wixData.query("Jobs").contains("title", keyWord));
|
|
82
82
|
await _$w("#jobsDataset").refresh();
|
|
83
83
|
}
|
|
84
84
|
|