Created
August 26, 2017 15:43
-
-
Save inoyakaigor/798f30173a1527dec39f2dfa9ed02581 to your computer and use it in GitHub Desktop.
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
Pidors.findAll({ | |
attributes: [[Sequelize.fn('COUNT', Sequelize.col('pidorid')), 'pidor_times'], 'pidorid'], | |
where: {chatid: 2000000002}, | |
order: [['pidor_times', 'DESC']], | |
group: 'pidorid', | |
limit: 10 | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment