@autofleet/shtinker 1.1.5-beta.3 → 1.1.5-beta.5

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.
@@ -40,6 +40,7 @@ class AuditLogger {
40
40
  modelType.addHook('afterSave', (instance, options) => __awaiter(this, void 0, void 0, function* () {
41
41
  try {
42
42
  const auditContext = getAuditContext();
43
+ logger_1.default.info('MATAN auditContext: ', { auditContext });
43
44
  if (auditContext) {
44
45
  const changedProperties = getChangedFields(instance, options);
45
46
  logger_1.default.info('MATAN changedProperties from shtinker:', { changedProperties });
@@ -52,6 +53,8 @@ class AuditLogger {
52
53
  newValue: instance.get(property),
53
54
  })),
54
55
  };
56
+ const entityId = instance.id;
57
+ logger_1.default.info('MATAN entityId from shtinker:', { entityId });
55
58
  this.sendAuditLogRows(payload);
56
59
  }
57
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/shtinker",
3
- "version": "1.1.5-beta.3",
3
+ "version": "1.1.5-beta.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -39,6 +39,7 @@ class AuditLogger {
39
39
  modelType.addHook('afterSave', async (instance: any, options: any) => {
40
40
  try {
41
41
  const auditContext = getAuditContext();
42
+ logger.info('MATAN auditContext: ', { auditContext });
42
43
  if (auditContext) {
43
44
  const changedProperties = getChangedFields(instance, options);
44
45
  logger.info('MATAN changedProperties from shtinker:', { changedProperties });
@@ -51,6 +52,8 @@ class AuditLogger {
51
52
  newValue: instance.get(property),
52
53
  })),
53
54
  };
55
+ const entityId = instance.id;
56
+ logger.info('MATAN entityId from shtinker:', { entityId });
54
57
  this.sendAuditLogRows(payload);
55
58
  }
56
59
  } catch (error) {