Permalink
Browse files

bakusoku5

  • Loading branch information...
sorah committed Oct 22, 2017
1 parent a07b6f1 commit c1e0134de012414dd7565f5dc7906c115549f14c
Showing with 2 additions and 0 deletions.
  1. +2 −0 isubata/webapp/ruby/app.rb
@@ -515,6 +515,7 @@ def db_add_message(channel_id, user_id, content)
statement.close
redis.hincrby(redis_key_total_messages, channel_id, 1)
redis.publish(AwesomeFetch::STREAM_KEY, '')
session[:bakusoku] = true
messages
end
@@ -529,6 +530,7 @@ def register(user, password)
statement.execute(user, salt, pass_digest, user, 'default.png')
row = db.query('SELECT LAST_INSERT_ID() AS last_insert_id').first
statement.close
session[:bakusoku] = true
row['last_insert_id']
end

0 comments on commit c1e0134

Please sign in to comment.