Skip to content

Instantly share code, notes, and snippets.

@yanmendes
yanmendes / a.js
Created September 29, 2017 18:19
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 = [];