Skip to content

Commit

Permalink
Merge pull request #2 from v2dev/DCT_118_avoid_creating_change_logs_f…
Browse files Browse the repository at this point in the history
…or_create_operation

DCT_118 Avoid creating Revision changes entry for model create  opera…
  • Loading branch information
ganeshan-v2 authored Sep 9, 2020
2 parents c218d40 + 0f18d2a commit 8e99e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ exports.init = (sequelize, optionsArg) => {
.save({ transaction: opt.transaction })
.then((objectRevision) => {
// Loop diffs and create a revision-diff for each
if (options.enableRevisionChangeModel) {
if (options.enableRevisionChangeModel && query.operation === 'update') {
_.forEach(delta, (difference) => {
const o = helpers.diffToString(
difference.item
Expand Down

0 comments on commit 8e99e90

Please sign in to comment.