Hi,
Build a V8js custom service with later.js to have cron as services. However, following snippet throws error 'Array to string conversion'. Any way to validate/troubleshoot if required js file is loaded. Or library issue
The later.min.js file is copied/available at \Bitnami\dreamfactory-2.1.0-4\apps\dreamfactory\htdocs\storage\scripting\
Code Snippet:
var lodash = require("lodash.min.js"); var _later = require("later.min.js");
var sched = later.parse.cron('15 10 ? * *'); var dates = later.schedule(sched).next(5);
var result = {}; result.phase = 'testing'; result._later = _later; result.sched = sched; result.dates = dates;
return result;