Skip to content

Commit

Permalink
refactor: minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
hfreire committed Jul 5, 2017
1 parent e184f0a commit c98e6ae
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@
"build": "pushd ./share/docker; NAME=$npm_package_name ./hooks/build; popd",
"push": "pushd ./share/docker; NAME=$npm_package_name ./hooks/push; popd",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
"start": "node src/app.js"
"start": "npm run compile && node src/app.js"
}
}
Binary file modified share/github/overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/dates/match/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Database = require('../../database')
class Message {
readMessages (messages) {
return Promise.mapSeries(messages, (message) => {
return Database.message.create(message)
return Database.messages.create(message)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Stats extends Route {
handler ({ query }, reply) {
const { page = 1, limit = 25 } = query

Database.stats.findAndCountAll({ offset: (page - 1) * limit, limit })
Database.stats.findAndCountAll({ offset: (page - 1) * limit, limit, order: [ [ 'date', 'DESC' ] ] })
.then(({ rows, count }) => reply({ results: rows, totalCount: count }))
.catch((error) => {
Logger.error(error)
Expand Down

0 comments on commit c98e6ae

Please sign in to comment.