fix(script): make video optional

This commit is contained in:
Nicholai Nissen 2021-04-03 18:23:51 +02:00
parent 5d649a1e37
commit 9a3e0f2bcd

View file

@ -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> {}