Update task.js

This commit is contained in:
Namhyeon Go 2021-07-05 22:11:17 +09:00 committed by GitHub
parent 5849a79e30
commit 7263b3a517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ exports.createTask = function(f, params) {
exports.putTask = function(q, task) { exports.putTask = function(q, task) {
try { try {
if (q instanceof TaskQueue) { if (q instanceof TaskQueue && task instanceof Task) {
return q.put(task); return q.put(task);
} }
} catch(e) { } catch(e) {