diff options
Diffstat (limited to 'lib/event.schema.ts')
-rw-r--r-- | lib/event.schema.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/event.schema.ts b/lib/event.schema.ts index 1bba77d..0f428fd 100644 --- a/lib/event.schema.ts +++ b/lib/event.schema.ts @@ -1,7 +1,7 @@ import { Schema, Document } from 'mongoose'; export interface EventDocument<Context> extends Document { - name: string; + type: string; schedule: string; status: 'notStarted' | 'running' | 'complete' | 'failed'; error?: string; @@ -11,7 +11,7 @@ export interface EventDocument<Context> extends Document { } const createEventSchema = (contextSchema: Schema) => new Schema({ - name: { + type: { type: String, required: true }, |