Skip to content

Commit

Permalink
Coerce query to array. Fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
thejsj committed Jun 29, 2015
1 parent c9c660f commit 8107916
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/index.js
Expand Up @@ -23,6 +23,7 @@ io.on('connection', function (socket) {

r.table('messages')
.orderBy({index: 'created'})
.coerceTo('array')
.run(r.conn)
.then(function (messages) {

This comment has been minimized.

messages.forEach(function (message) {
Expand Down

1 comment on commit 8107916

@sofuckingsad
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run.sh

Please sign in to comment.