This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
models.Traffic.destroy({ | |
where: {} | |
}).then(function () { | |
return models.TrafficFull.destroy({where: {}}); | |
}).then(function () { | |
return new Promise(function(resolve, reject) { | |
var since = new Date(req.body.since); | |
var to = new Date(req.body.to); | |
var pad = '00'; | |
var subqueries = []; |
NewerOlder