[deploy] Remove dead code in chat-channels-controller (#8943)
This commit is contained in:
parent
d3a7f64d2b
commit
14c346c8ed
1 changed files with 0 additions and 6 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue