Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports.redis.rpop('mailtrain:cache:' + key, (err, value) => {
if (err) {
return callback(err);
}
try {
value = stringifyDate.parse(value);
} catch (E) {
return callback(E);
}
return callback(null, value);
});
};