Quantcast
Channel: DreamFactory Forum - Latest topics
Viewing all articles
Browse latest Browse all 1523

V8 Custom Script + Later.js =?

$
0
0

@Prathamesh_Gaddam wrote:

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;

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 1523

Trending Articles