weizhouapache commented on code in PR #14150:
URL: https://github.com/apache/cloudstack/pull/14150#discussion_r4376508499
##########
engine/schema/src/main/java/com/cloud/projects/dao/ProjectAccountDaoImpl.java:
##########
@@ -108,10 +108,12 @@ public ProjectAccountVO findByProjectIdAccountId(long
projectId, long accountId)
}
@Override
- public ProjectAccountVO findByProjectIdUserId(long projectId, long
accountId, long userId) {
+ public ProjectAccountVO findByProjectIdUserId(long projectId, long
accountId, Long userId) {
SearchCriteria<ProjectAccountVO> sc = AllFieldsSearch.create();
sc.setParameters("projectId", projectId);
- sc.setParameters("userId", userId);
+ if (userId != null) {
Review Comment:
added a new method removeByProjectIdAccountId to remove all records by
projectid and accountid
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]