sr-npm 1.7.492 → 1.7.493
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 -2
- package/package.json +1 -1
package/backend/data.js
CHANGED
|
@@ -378,9 +378,10 @@ async function fillSecretManagerMirror() {
|
|
|
378
378
|
|
|
379
379
|
async function insertSecretValToCMS(tokenName) {
|
|
380
380
|
const token = await retrieveSecretVal(tokenName);
|
|
381
|
-
await wixData.
|
|
381
|
+
await wixData.save(COLLECTIONS.SECRET_MANAGER_MIRROR, {
|
|
382
382
|
tokenName: tokenName,
|
|
383
|
-
tokenValue: token.value
|
|
383
|
+
tokenValue: token.value,
|
|
384
|
+
_id: normalizeString(tokenName)
|
|
384
385
|
});
|
|
385
386
|
}
|
|
386
387
|
|