fix(db/models): short-circuit story model definition + plugin load

This commit is contained in:
parent 3d3580be07
commit 722368c707
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -87,7 +87,8 @@ const StorySchema = new mongoose.Schema<IStory>({
default: new Date(),
},
});
hasMigrated && !mongoose.models.Story;
hasMigrated &&
!mongoose.models.Story &&
Chapter.plugin(AutoIncrement, { id: "chapterid", inc_field: "id" });
hasMigrated &&
!mongoose.models.Story &&