Skip to content

Commit eb966f7

Browse files
committed
Fix possibility of 'undefined' value in Redis hash
1 parent 99fc56d commit eb966f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wflib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ exports.init = function(redisClient) {
332332
}
333333
}
334334
copy.fun = task.function ? task.function: "null"; // FIXME: unify this attr name
335-
copy.wfname = wfname;
335+
copy.wfname = wfname || "null";
336336
/*if (!copy.config)
337337
copy.config = "null";*/
338338
copy.status = "waiting";

0 commit comments

Comments
 (0)