Permalink
Browse files

fix order

  • Loading branch information...
sorah committed Oct 22, 2017
1 parent 593e857 commit 77f6212218e9af20735b093e8b5129f5e0c747a9
Showing with 1 addition and 1 deletion.
  1. +1 −1 isubata/webapp/ruby/app.rb
@@ -333,8 +333,8 @@ def user
# statement.close
end
response.headers['X-Awesome-Fetch'] = 'miss'
res.reverse! # TODO:
end
res.reverse! # TODO:
max_message_id = res.empty? ? 0 : res.map { |_| _['id'] }.max
redis.hset(redis_key_lastreads(user_id), channel_id, max_message_id)

0 comments on commit 77f6212

Please sign in to comment.