drapcode-utility 1.8.7 → 1.8.9

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.
@@ -121,7 +121,7 @@ var processItemEncryptDecrypt = function (item, fields, encryption, decrypt, enc
121
121
  if (!drapcode_constant_1.BelongsCreatedByRefField.includes(field === null || field === void 0 ? void 0 : field.type)) return [3 /*break*/, 6];
122
122
  refField = field;
123
123
  if (!refField.refCollection &&
124
- field.type === drapcode_constant_1.FieldTypes.createdBy.id) {
124
+ [drapcode_constant_1.FieldTypes.createdBy.id, drapcode_constant_1.FieldTypes.updatedBy.id].includes(field.type)) {
125
125
  refField.refCollection = {
126
126
  collectionField: "userName",
127
127
  collectionName: "user",
@@ -17,7 +17,8 @@ var getEncryptedReferenceFieldsQuery = function (collectionFields, projectId) {
17
17
  return drapcode_constant_1.BelongsCreatedByRefField.includes(field.type);
18
18
  });
19
19
  collectionFields.forEach(function (field) {
20
- if (!field.refCollection && field.type === drapcode_constant_1.FieldTypes.createdBy.id) {
20
+ if (!field.refCollection &&
21
+ [drapcode_constant_1.FieldTypes.createdBy.id, drapcode_constant_1.FieldTypes.updatedBy.id].includes(field.type)) {
21
22
  collectionsNamesArr.push("user");
22
23
  }
23
24
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drapcode-utility",
3
- "version": "1.8.7",
3
+ "version": "1.8.9",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -37,9 +37,9 @@
37
37
  "@types/voca": "^1.4.2",
38
38
  "axios": "^1.1.2",
39
39
  "dompurify": "^3.1.7",
40
- "drapcode-constant": "^1.6.5",
41
- "drapcode-logger": "^1.3.1",
42
- "drapcode-redis": "^1.2.0",
40
+ "drapcode-constant": "^1.6.6",
41
+ "drapcode-logger": "^1.3.2",
42
+ "drapcode-redis": "^1.2.2",
43
43
  "exiftool-vendored": "^28.2.1",
44
44
  "express": "^4.17.1",
45
45
  "gm": "^1.25.0",