接口getAllInstallBots修改返回参数:repoOwners -> storeRepos

This commit is contained in:
wanjia 2023-03-30 14:25:53 +08:00
parent c046f73911
commit 508215c188
2 changed files with 4 additions and 4 deletions

View File

@ -1205,10 +1205,10 @@ public class UserService extends AbstractUserBot implements IUserService {
if(botAndAllRepoOwnerMap.containsKey(installBot.getBotId())){
s = botAndAllRepoOwnerMap.get(installBot.getBotId());
}
if (installBot.getRepoOwner() == null || (s.length() > 0 && s.toString().contains(installBot.getRepoOwner()))){
if (installBot.getStoreRepo() == null || (s.length() > 0 && s.toString().contains(installBot.getStoreRepo()))){
continue;
}
botAndAllRepoOwnerMap.put(installBot.getBotId(), s.add(installBot.getRepoOwner()));
botAndAllRepoOwnerMap.put(installBot.getBotId(), s.add(installBot.getStoreRepo()));
}
@ -1224,7 +1224,7 @@ public class UserService extends AbstractUserBot implements IUserService {
installBotInfo.setLimitVO(limitVO);
BeanUtils.copyProperties(bot,installBotInfo);
BeanUtils.copyProperties(installBot,installBotInfo);
installBotInfo.setRepoOwners(String.valueOf(botAndAllRepoOwnerMap.get(installBotInfo.getBotId())));
installBotInfo.setStoreRepos(String.valueOf(botAndAllRepoOwnerMap.get(installBotInfo.getBotId())));
installBotInfos.add(installBotInfo);
});

View File

@ -32,5 +32,5 @@ public class InstallBotInfo {
LimitVO limitVO;
String repoOwners;
String storeRepos;
}