8000 Merge pull request #239 from michikono/patch-2 · JavaScriptExpert/kue@ed2d333 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed2d333

Browse files
committed
Merge pull request Automattic#239 from michikono/patch-2
Fixing Cannot read property 'id' of undefined issue
2 parents 4b37016 + d87f727 commit ed2d333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/queue/job.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ exports.get = function(id, fn){
155155
client.hgetall('q:job:' + job.id, function(err, hash){
156156
if (err) return fn(err);
157157
if (!hash) return fn(new Error('job "' + job.id + '" doesnt exist'));
158-
if (!hash.type) return fn();
158+
if (!hash.type) return fn(new Error('job "' + job.id + '" is invalid'));
159159
// TODO: really lame, change some methods so
160160
// we can just merge these
161161
job.type = hash.type;

0 commit comments

Comments
 (0)
0