1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-02 10:56:00 +02:00
This commit is contained in:
syuilo
2018-04-06 03:42:55 +09:00
parent b6aeacdeb9
commit 0154e44e1d
2 changed files with 7 additions and 4 deletions

View File

@@ -12,8 +12,9 @@ export default (job, done) => {
const handler = handlers[job.data.type];
if (handler) {
handler(job).then(() => done(), done);
handler(job, done);
} else {
console.warn(`Unknown job: ${job.data.type}`);
done();
}
};