sr-npm 1.7.26 → 1.7.27
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 -4
- package/package.json +1 -1
package/backend/data.js
CHANGED
|
@@ -4,8 +4,7 @@ const { chunkedBulkOperation } = require('./utils');
|
|
|
4
4
|
const { createCollectionIfMissing } = require('@hisense-staging/velo-npm/backend');
|
|
5
5
|
const { COLLECTIONS, COLLECTIONS_FIELDS } = require('./collectionConsts');
|
|
6
6
|
const { secrets } = require("@wix/secrets");
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const { elevate } = require("wix-auth");
|
|
9
8
|
|
|
10
9
|
// Utility function to normalize city names
|
|
11
10
|
function normalizeCityName(city) {
|
|
@@ -321,8 +320,8 @@ function fetchJobLocation(jobDetails) {
|
|
|
321
320
|
|
|
322
321
|
|
|
323
322
|
function getSmartToken() {
|
|
324
|
-
|
|
325
|
-
return
|
|
323
|
+
const elevatedGetSecretValue = elevate(secrets.getSecretValue);
|
|
324
|
+
return elevatedGetSecretValue("x-smarttoken")
|
|
326
325
|
.then((secret) => {
|
|
327
326
|
return secret;
|
|
328
327
|
})
|