yatta
This commit is contained in:
parent
80e5645a84
commit
e66d7babc5
56 changed files with 115 additions and 112 deletions
|
|
@ -1,12 +1,12 @@
|
|||
import deliver from './deliver';
|
||||
import processInbox from './process-inbox';
|
||||
|
||||
const handlers = {
|
||||
const handlers: any = {
|
||||
deliver,
|
||||
processInbox,
|
||||
};
|
||||
|
||||
export default (job, done) => {
|
||||
export default (job: any, done: any) => {
|
||||
const handler = handlers[job.data.type];
|
||||
|
||||
if (handler) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue