fix(script): make video optional
This commit is contained in:
parent
5d649a1e37
commit
9a3e0f2bcd
|
@ -3,8 +3,8 @@ import { model, Schema, Document } from 'mongoose'
|
||||||
|
|
||||||
const ScriptSchema: Record<keyof IScript, any> = {
|
const ScriptSchema: Record<keyof IScript, any> = {
|
||||||
title: { type: String, required: true },
|
title: { type: String, required: true },
|
||||||
video: { type: String, required: true },
|
body: { type: String, required: true },
|
||||||
body: { type: String, required: true }
|
video: { type: String }
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ScriptDocument extends Document<IScript> {}
|
export interface ScriptDocument extends Document<IScript> {}
|
||||||
|
|
Loading…
Reference in a new issue