diff --git a/models/sidebarEntry.ts b/models/sidebarEntry.ts index 7b441b2..28a5662 100644 --- a/models/sidebarEntry.ts +++ b/models/sidebarEntry.ts @@ -35,6 +35,7 @@ const SISchema = new mongoose.Schema({ }); export const SidebarItem: Model = + mongoose.models.SidebarItem || /* mongoose.models.SidebarItem || */ mongoose.model( "SidebarItem", SISchema,