sr-npm 1.7.412 → 1.7.413
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.
|
@@ -107,7 +107,7 @@ async function fetchJobDescription(jobId) {
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
async function getCompanyIdFromCMS() {
|
|
110
|
-
const result = await wixData.query(COLLECTIONS.SECRET_MANAGER_MIRROR).
|
|
110
|
+
const result = await wixData.query(COLLECTIONS.SECRET_MANAGER_MIRROR).eq('tokenName','companyId').find();
|
|
111
111
|
if (result.items.length > 0) {
|
|
112
112
|
return result.items[0].tokenValue;
|
|
113
113
|
} else {
|
|
@@ -116,7 +116,7 @@ async function getCompanyIdFromCMS() {
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
async function getSmartTokenFromCMS() {
|
|
119
|
-
const result = await wixData.query(COLLECTIONS.SECRET_MANAGER_MIRROR).
|
|
119
|
+
const result = await wixData.query(COLLECTIONS.SECRET_MANAGER_MIRROR).eq('tokenName','x-smarttoken').find();
|
|
120
120
|
if (result.items.length > 0) {
|
|
121
121
|
return result.items[0].tokenValue;
|
|
122
122
|
} else {
|