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.
Files changed (2) hide show
  1. package/backend/data.js +3 -2
  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.insert(COLLECTIONS.SECRET_MANAGER_MIRROR, {
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.492",
3
+ "version": "1.7.493",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {