better-queue
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -47,3 +47,11 @@ var uuid = require('node-uuid'); | ||
SQLiteStore.prototype.getTask = function (taskId, cb) { | ||
this.db.get("SELECT * FROM tasks WHERE id = ?", taskId, cb); | ||
this.db.get("SELECT task FROM tasks WHERE id = ?", taskId, function (err, row) { | ||
if (err) return cb({ message: 'failed_to_get_from_sqlite_db' }); | ||
try { | ||
var savedTask = JSON.parse(row.task); | ||
} catch (e) { | ||
return cb('failed_to_deserialize_task'); | ||
} | ||
cb(null, savedTask); | ||
}); | ||
} | ||
@@ -50,0 +58,0 @@ |
{ | ||
"name": "better-queue", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "Better Queue for NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "lib/queue.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72619
1890