fix(script): make video optional

This commit is contained in:
Nicholai Nissen 2021-04-03 18:23:51 +02:00
parent 5d649a1e37
commit 9a3e0f2bcd
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@ import { model, Schema, Document } from 'mongoose'
const ScriptSchema: Record<keyof IScript, any> = {
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> {}