@autofleet/shtinker 1.1.6-beta.24 → 1.1.6-beta.25

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.
@@ -38,9 +38,12 @@ const getChangedFields = (instance, options) => {
38
38
  // When bulk updating in sequelize using the "returning" option, the instance.changed() stops working.
39
39
  // It's a known issut with sequelize.
40
40
  if (options.returning) {
41
+ logger_1.default.info('inside options.returning', { returning: options.returning });
41
42
  return filterOutEmptyFields(options.fields, instance);
42
43
  }
43
- return instance.changed();
44
+ const changed = instance.changed();
45
+ logger_1.default.info('inside changed', { changed: changed });
46
+ return changed;
44
47
  };
45
48
  class AuditLogger {
46
49
  constructor(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/shtinker",
3
- "version": "1.1.6-beta.24",
3
+ "version": "1.1.6-beta.25",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -31,9 +31,12 @@ const getChangedFields = (instance, options) => {
31
31
  // When bulk updating in sequelize using the "returning" option, the instance.changed() stops working.
32
32
  // It's a known issut with sequelize.
33
33
  if (options.returning) {
34
+ logger.info('inside options.returning', { returning: options.returning });
34
35
  return filterOutEmptyFields(options.fields, instance);
35
36
  }
36
- return instance.changed();
37
+ const changed = instance.changed();
38
+ logger.info('inside changed', { changed: changed });
39
+ return changed;
37
40
  };
38
41
 
39
42
  class AuditLogger {