aboutsummaryrefslogtreecommitdiff
path: root/lib/event.model.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-12-02 04:10:15 +0300
committereug-vs <eug-vs@keemail.me>2020-12-02 04:10:36 +0300
commit6f52408e7bf79730df9eb7b487dcacf468e409e1 (patch)
tree0bc1caf00ad8a95ac4faa438ff2f848529d36a2b /lib/event.model.ts
parent40ffcc5e78f5ee41353e383ca25b81134084ab9f (diff)
downloadmongo-cronjob-6f52408e7bf79730df9eb7b487dcacf468e409e1.tar.gz
test: Event model
Diffstat (limited to 'lib/event.model.ts')
-rw-r--r--lib/event.model.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/event.model.ts b/lib/event.model.ts
index 7768ffc..1b6d324 100644
--- a/lib/event.model.ts
+++ b/lib/event.model.ts
@@ -5,7 +5,7 @@ import { LogDocument } from './log.schema';
import LogModel from './log.model';
export interface Event<Context> extends EventDocument<Context> {
- log(message: string): void;
+ log(message: string): Promise<LogDocument>;
start(): void;
complete(): void;
fail(error: Error | string): void;