Skip to content

Commit a555fe6

Browse files
wkigenyigalovics
authored andcommitted
Fix applyAdditionalShares
Use saveAndFlush instead of save on ShareAccountRepository
1 parent 0187dc5 commit a555fe6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fineract-provider/src/main/java/org/apache/fineract/portfolio/shareaccounts/service/ShareAccountWritePlatformServiceJpaRepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public CommandProcessingResult applyAddtionalShares(final Long accountId, JsonCo
225225
Map<String, Object> changes = this.accountDataSerializer.validateAndApplyAddtionalShares(jsonCommand, account);
226226
ShareAccountTransaction transaction = null;
227227
if (!changes.isEmpty()) {
228-
this.shareAccountRepository.save(account);
228+
this.shareAccountRepository.saveAndFlush(account);
229229
transaction = (ShareAccountTransaction) changes.get(ShareAccountApiConstants.additionalshares_paramname);
230230
transaction = account.getShareAccountTransaction(transaction);
231231
if (transaction != null) {

0 commit comments

Comments
 (0)