@sera4/essentia 1.1.14 → 1.1.15
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/package.json +1 -1
- package/package.tar.gz +0 -0
- package/paper-trail/index.js +6 -7
package/package.json
CHANGED
package/package.tar.gz
CHANGED
|
Binary file
|
package/paper-trail/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as jsdiff from 'diff';
|
|
2
2
|
import _ from 'lodash';
|
|
3
3
|
import helpers from './helpers.js';
|
|
4
|
-
|
|
4
|
+
import paginator from "../paginator/s4-pagination.js";
|
|
5
5
|
|
|
6
6
|
let failHard = false;
|
|
7
7
|
let als;
|
|
@@ -595,17 +595,16 @@ paperTrail.init = (sequelize, sequelizePackage, optionsArg) => {
|
|
|
595
595
|
foreignKey: options.defaultAttributes.revisionId,
|
|
596
596
|
constraints: false,
|
|
597
597
|
});
|
|
598
|
+
paginator.paginate(Revision);
|
|
598
599
|
|
|
599
|
-
// https://github.com/nielsgl/sequelize-paper-trail/issues/10
|
|
600
|
-
// RevisionChange.belongsTo(Revision, {
|
|
601
|
-
// foreignKey: options.defaultAttributes.revisionId,
|
|
602
|
-
// });
|
|
603
600
|
RevisionChange.belongsTo(Revision);
|
|
604
601
|
|
|
605
|
-
if (db)
|
|
602
|
+
if (db)
|
|
603
|
+
db[RevisionChange.name] = RevisionChange;
|
|
606
604
|
}
|
|
607
605
|
|
|
608
|
-
if (db)
|
|
606
|
+
if (db)
|
|
607
|
+
db[Revision.name] = Revision;
|
|
609
608
|
|
|
610
609
|
/*
|
|
611
610
|
* We could extract this to a separate function so that having a
|