fixed bot安装仓库列表,与github差异,所以取安装用户和bot对应所有的仓库
This commit is contained in:
parent
1b183811dd
commit
1d2ea48812
|
@ -16,8 +16,10 @@ class InstallationsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def repositories
|
def repositories
|
||||||
|
# 与github差异,所以取安装用户和bot对应所有的仓库
|
||||||
|
install_bot = BotInstall.find params[:id]
|
||||||
bot = Bot.find_by(uid: current_user.id)
|
bot = Bot.find_by(uid: current_user.id)
|
||||||
@install_bots = BotInstall.where(bot_id: bot.id).where(:installer_id => bot.owner_id)
|
@install_bots = BotInstall.where(bot_id: bot.id).where(:installer_id => install_bot.installer_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_secret
|
def update_secret
|
||||||
|
|
Loading…
Reference in New Issue