refactor(db/models): short circuit sidebar item model definition
This commit is contained in:
parent
23a7c4d222
commit
3d3580be07
@ -35,6 +35,7 @@ const SISchema = new mongoose.Schema<ISidebarItem>({
|
||||
});
|
||||
|
||||
export const SidebarItem: Model<ISidebarItem> =
|
||||
mongoose.models.SidebarItem ||
|
||||
/* mongoose.models.SidebarItem || */ mongoose.model(
|
||||
"SidebarItem",
|
||||
SISchema,
|
||||
|
Loading…
Reference in New Issue
Block a user