@optimiser/common 1.0.340 → 1.0.341

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.
@@ -5410,8 +5410,9 @@ function GetEncryptedURL(options) {
5410
5410
  var url = cryptoService.encrypt(secretKey, companyId + "-" + recordIdStr).cipherText;
5411
5411
  var apiEncryptedURL = "" + prefixUrl + apiUrl + url;
5412
5412
  bulkOps.push({
5413
- updateOne: {
5413
+ updateMany: {
5414
5414
  filter: (_a = {},
5415
+ _a[fieldName] = { $exists: false },
5415
5416
  _a[filterKey] = record,
5416
5417
  _a),
5417
5418
  update: { $set: (_b = {}, _b[fieldName] = apiEncryptedURL, _b) }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimiser/common",
3
- "version": "1.0.340",
3
+ "version": "1.0.341",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {