nielsgl/sequelize-paper-trail

Not possible change defaultAttributes

Closed this issue · 1 comments

Changing defaultAttributes has no effect. This code override the user (line 77):

  if (!options.underscoredAttributes) {
    options.underscoredAttributes = false;
    options.defaultAttributes = defaultAttributes;
  } else {
    options.defaultAttributes = helpers.toUnderscored(defaultAttributes);
  }

Resolved, thanks for the PR
🎉 👍