Skip to content

Commit

Permalink
Fix JobBroker.jobEventHandler is not a function
Browse files Browse the repository at this point in the history
    at jobEventHandler
  • Loading branch information
k2tzumi committed Mar 5, 2023
1 parent 20400dc commit 823dbe9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const jobEventHandler = (event: TimeBasedEvent): void => {
new JobBroker<object>(jobEventHandler).consumeJob(event);
};

global.jobEventHandler = jobEventHandler;

/**
* Register for asynchronous processing.
* @param {JobFunction} callback call back funtion
Expand Down

0 comments on commit 823dbe9

Please # to comment.