Skip to content

Commit 87944e8

Browse files
authored
Merge pull request #4132 from zlamalp/transaction
fix(registrar): transaction for approving multiple applications
2 parents ce519f6 + 369fcd3 commit 87944e8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

perun-registrar-lib/src/main/java/cz/metacentrum/perun/registrar/impl/RegistrarManagerImpl.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,11 +1745,10 @@ public Application rejectApplication(PerunSession sess, int appId, String reason
17451745
}
17461746

17471747
@Override
1748-
@Transactional(rollbackFor = Exception.class)
17491748
public void rejectApplications(PerunSession sess, List<Integer> applicationIds, String reason) throws PerunException {
17501749
Collections.sort(applicationIds, Collections.reverseOrder());
17511750
for (Integer id : applicationIds) {
1752-
rejectApplication(sess, id, reason);
1751+
registrarManager.rejectApplication(sess, id, reason);
17531752
}
17541753
}
17551754

@@ -1851,7 +1850,6 @@ public Application approveApplication(PerunSession sess, int appId) throws Perun
18511850
}
18521851

18531852
@Override
1854-
@Transactional(rollbackFor = Exception.class)
18551853
public void approveApplications(PerunSession sess, List<Integer> applicationIds) throws PerunException {
18561854
Collections.sort(applicationIds);
18571855
for (Integer id : applicationIds) {

0 commit comments

Comments
 (0)