From 9a3e0f2bcdad2ad0de9836222b1b028908963e72 Mon Sep 17 00:00:00 2001 From: Nicholai Nissen Date: Sat, 3 Apr 2021 18:23:51 +0200 Subject: [PATCH] fix(script): make video optional --- services/models/script.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/models/script.ts b/services/models/script.ts index bbc9b3f..edd7e69 100644 --- a/services/models/script.ts +++ b/services/models/script.ts @@ -3,8 +3,8 @@ import { model, Schema, Document } from 'mongoose' const ScriptSchema: Record = { 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 {}