fixed bot安装仓库列表

This commit is contained in:
xxq250 2023-04-04 14:39:51 +08:00
parent f347810c3e
commit 1b183811dd
1 changed files with 1 additions and 1 deletions

View File

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