From 8cea9303e1e55921a728c86b4c5b75c68d65a39a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Thu, 28 Dec 2023 20:01:49 -0500 Subject: [PATCH] refactor(db/models): change chapter schema creation call `new mongoose.Schema` -> `new Schema` --- models/stories/chapter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/stories/chapter.ts b/models/stories/chapter.ts index c0189bc..a130d06 100644 --- a/models/stories/chapter.ts +++ b/models/stories/chapter.ts @@ -1,4 +1,4 @@ -import mongoose, { Schema, PopulatedDoc, Document, Model } from "mongoose"; +import { Schema, PopulatedDoc, Document, Model } from "mongoose"; import { IBand } from "@models/band"; export interface IChapter { title: string; @@ -17,7 +17,7 @@ export interface IChapter { posted?: Date; } -export const Chapter = new mongoose.Schema({ +export const Chapter = new Schema({ title: { type: String, default: "",