fixed bot安装仓库列表

This commit is contained in:
xxq250 2023-04-04 14:37:09 +08:00
parent 004f5a096d
commit 5302490d60
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ class InstallationsController < ApplicationController
end
def repositories
@install_bots = BotInstall.where(:installer_id => current_user.id)
bot = Bot.find_by(uid: current_user.id)
@install_bots = BotInstall.where(:installer_id => bot.owner_id)
end
def update_secret