Missing err arg in insertTasks callback
This commit is contained in:
1 parent
0d9ca3486b
commit
7e7a2032bb
1 file changed
+1
-1
@@ -214,7 +214,7 @@ insertTasks = (tasks, callback) ->
|
||||
if tasks? and common.typeOf(tasks) isnt common.ARRAY_TYPE
|
||||
tasks = [tasks]
|
||||
else if not tasks? or tasks.length == 0
|
||||
return callback(tasks)
|
||||
return callback(null, tasks or [])
|
||||
|
||||
counter = tasks.length
|
||||
|
||||
|
||||
Reference in new issue
Block a user