Minor bugfix

This commit is contained in:
George Kalampokis 2020-05-04 16:00:23 +03:00
parent 391a88a236
commit 08737cbbf0
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ public class InvitationsManager {
UserAssociation userAssociation = new UserAssociation(); UserAssociation userAssociation = new UserAssociation();
userAssociation.setFirstUser(principalUser); userAssociation.setFirstUser(principalUser);
userAssociation.setSecondUser(userInfo); userAssociation.setSecondUser(userInfo);
apiContext.getOperationsContext().getDatabaseRepository().getUserAssociationDao().createOrUpdate(userAssociation);
} }
} }
DMP dataManagementPlan = apiContext.getOperationsContext().getDatabaseRepository().getDmpDao().find(invitation.getDataManagementPlan()); DMP dataManagementPlan = apiContext.getOperationsContext().getDatabaseRepository().getDmpDao().find(invitation.getDataManagementPlan());