🔧 Cleaned up unused code and bumped filename-parser

This commit is contained in:
2022-02-07 09:56:08 -08:00
parent bfb1f7fa28
commit 8bb74404fc
8 changed files with 24 additions and 76 deletions

View File

@@ -63,7 +63,7 @@ const ComicSchema = mongoose.Schema({
inferredMetadata: {
issue: {
name: String,
number: { type: Number, es_indexed: true },
number: { type: Number, es_indexed: true, required: false, default: 0 },
year: String,
subtitle: String,
}
@@ -83,6 +83,7 @@ const ComicSchema = mongoose.Schema({
},
},
}, { timestamps: true});
ComicSchema.plugin(mexp, {
client: eSClient,
});