refactor(db/models): update color field in sidebarentry to accept either a string or an enum

This commit is contained in:
parent cc28b65063
commit 4c39eb8799
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -13,7 +13,7 @@ export enum Color {
}
export interface ISidebarItem {
color: Color;
color: Color | string;
url: string;
linkTitle: string;
index: number;
@ -22,7 +22,6 @@ export interface ISidebarItem {
const SISchema = new mongoose.Schema<ISidebarItem>({
color: {
type: String,
enum: Object.values(Color),
},
url: {
type: String,