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