diff options
| -rw-r--r-- | service_grab.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service_grab.js b/service_grab.js index 6ffec1f..301e9f5 100644 --- a/service_grab.js +++ b/service_grab.js @@ -144,7 +144,7 @@ module.exports = class Analyzer extends Service { // push a deep clone or the object will have the reference to part_start // which leads to all start/end dates being the same (?!) payloads.push(JSON.parse(JSON.stringify(pl))); // JavaScript sucks. - part_start = part_end; + part_start.setSeconds(part_end.getSeconds() + 1); // do not overlap start&end, or a match at created_at=start=end will appear twice } return payloads; } |
