@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.
- package/dist/lib/utility.js +2 -1
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -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
|
-
|
|
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) }
|