aboutsummaryrefslogtreecommitdiff
path: root/lib/event.schema.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/event.schema.ts')
-rw-r--r--lib/event.schema.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/event.schema.ts b/lib/event.schema.ts
index 0f428fd..8b9db8b 100644
--- a/lib/event.schema.ts
+++ b/lib/event.schema.ts
@@ -3,7 +3,7 @@ import { Schema, Document } from 'mongoose';
export interface EventDocument<Context> extends Document {
type: string;
schedule: string;
- status: 'notStarted' | 'running' | 'complete' | 'failed';
+ status?: 'notStarted' | 'running' | 'complete' | 'failed';
error?: string;
context: Context;
nextRunAt?: Date;