This commit is contained in:
syuilo
2018-06-18 14:28:43 +09:00
parent 80e5645a84
commit e66d7babc5
56 changed files with 115 additions and 112 deletions

View File

@@ -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) {