Skip to content

Commit 04dc046

Browse files
committed
fix: fixed linting
1 parent 871017c commit 04dc046

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@ const mongooseSlugPlugin = (schema, options = {}) => {
5353
};
5454
if (config.historyField) {
5555
obj[config.historyField] = [
56-
{
56+
{
5757
type: String,
5858
index: true
59-
}
59+
}
6060
];
6161
}
62+
6263
schema.add(obj);
6364

6465
schema.pre('validate', async function(next) {
@@ -89,7 +90,7 @@ const mongooseSlugPlugin = (schema, options = {}) => {
8990
if (config.historyField) {
9091
// create slug history if it does not exist yet
9192
if (!Array.isArray(this[config.historyField]))
92-
this[config.historyField] = [];
93+
this[config.historyField] = [];
9394

9495
// add the slug to the slug_history
9596
this[config.historyField].push(this[config.slugField]);

0 commit comments

Comments
 (0)