@autofleet/shtinker 1.0.2 → 1.0.3
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/audit-logger.js +1 -1
- package/package.json +1 -1
- package/src/audit-logger.ts +1 -1
package/dist/audit-logger.js
CHANGED
|
@@ -25,7 +25,7 @@ const getChangedFields = (instance, options) => {
|
|
|
25
25
|
// When bulk updating in sequelize using the "returning" option, the instance.changed() stops working.
|
|
26
26
|
// It's a known issut with sequelize.
|
|
27
27
|
if (options.returning) {
|
|
28
|
-
return options.
|
|
28
|
+
return options.fields;
|
|
29
29
|
}
|
|
30
30
|
return instance.changed();
|
|
31
31
|
};
|
package/package.json
CHANGED
package/src/audit-logger.ts
CHANGED
|
@@ -16,7 +16,7 @@ const getChangedFields = (instance, options) => {
|
|
|
16
16
|
// When bulk updating in sequelize using the "returning" option, the instance.changed() stops working.
|
|
17
17
|
// It's a known issut with sequelize.
|
|
18
18
|
if (options.returning) {
|
|
19
|
-
return options.
|
|
19
|
+
return options.fields;
|
|
20
20
|
}
|
|
21
21
|
return instance.changed();
|
|
22
22
|
};
|