Skip to content

Commit

Permalink
Merge pull request #23 from k2tzumi/fix-not-a-function
Browse files Browse the repository at this point in the history
Fix JobBroker.jobEventHandler is not a function
  • Loading branch information
k2tzumi authored Mar 5, 2023
2 parents 20400dc + 823dbe9 commit 333c5f9
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 333c5f9

Please # to comment.