Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}, function(err, res) {
var lob_address = res;
lob.objects.create({
name: output_path,
file: "@"+output_path,
setting_id: 100
}, function(err, res) {
var lob_object = res;
lob.jobs.create({
name: output_path,
from: lob_address.id,
to: lob_address.id,
object1: lob_object.id
}, function(err, res) {
console.log(err, res);
});
});
});