From 823dbe9d243e07c5735c0842d3564bfb9e7d2c93 Mon Sep 17 00:00:00 2001 From: Katsumi Kato Date: Sun, 5 Mar 2023 08:56:24 +0000 Subject: [PATCH] Fix JobBroker.jobEventHandler is not a function at jobEventHandler --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 0a80962..2114b8b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,6 +13,8 @@ const jobEventHandler = (event: TimeBasedEvent): void => { new JobBroker(jobEventHandler).consumeJob(event); }; +global.jobEventHandler = jobEventHandler; + /** * Register for asynchronous processing. * @param {JobFunction} callback call back funtion