Skip to content

Commit

Permalink
fix sort_by logic at old_chat method, sort as numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
thatblue committed Aug 23, 2017
1 parent 6db17c5 commit a2d522f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/goodbye_chatwork.rb
Expand Up @@ -71,7 +71,7 @@ def old_chat room_id, first_chat_id = 0
end
self.wait
r = JSON.parse(res.body)
r['result']['chat_list'].sort_by { |i| i['id'] }.reverse
r['result']['chat_list'].sort_by { |i| i['id'].to_i }.reverse
end

def account(aid)
Expand Down

0 comments on commit a2d522f

Please sign in to comment.