[deploy] Remove dead code in chat-channels-controller (#8943)

This commit is contained in:
rhymes 2020-06-29 15:32:20 +02:00 committed by GitHub
parent d3a7f64d2b
commit 14c346c8ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,12 +211,6 @@ class ChatChannelsController < ApplicationController
@active_channel.current_user = current_user if @active_channel
end
def generate_github_token
Rails.cache.fetch("user-github-token-#{current_user.id}", expires_in: 48.hours) do
Identity.where(user_id: current_user.id, provider: "github").first&.token
end
end
def render_chat_channel
if @chat_channel.valid?
render json: { status: "success",