Open mdufourneaud-m2ocity opened 7 years ago
Can you please provide more details? Typically, this error would have exception and stack trace. Also, in the beginning of the callback, you should first check for error parameter, like this: if (error) throw error;
Actually, this would not be possible currently, but soon should work.
When I try to reuse the same chained query an error occurs "Encountered exception while executing function", is it normal ?
Here is my code: ` function getAsCsv(startDate, endDate) { var query = __.chain() .filter(function (message) { return true; }); if (startDate != null) { query = query.filter(function (message) { return (startDate <= message.providingDate); }); } if (endDate != null) { query = query.filter(function (message) { return (message.providingDate <= endDate); }); } query = query.sortBy/Descending/(function (message) { return message.providingDate; });
} `