Last active
October 6, 2015 20:38
-
-
Save cbess/3049978 to your computer and use it in GitHub Desktop.
Sequelize sample.
This file contains 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
// get metric for the object id and today's date | |
var currentDate = new Date(); | |
currentDate.setHours(0); | |
currentDate.setMinutes(0); | |
currentDate.setSeconds(0); | |
console.log(currentDate.toString()); | |
StatMetric.find({ | |
where : { object_id: metricObject.id, stat_type_id: statTypeId, current_date: currentDate} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment