Skip to content

Commit

Permalink
LC-163 - Lowercase transaction tags example extension (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
SMaros authored Sep 13, 2023
1 parent 12d8216 commit b1556b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Map<String, String> onTransactionUpdated(ITransactionDetails transactionD

String organizationId = ctx.findIdentityByIdentityId(transactionDetails.getIdentityPublicId()).getOrganization().getId();
log.info("Defined transaction tags: {}", ctx.getTransactionTags(organizationId));
Set<String> tags = Collections.singleton(transactionDetails.getCryptoCurrency());
Set<String> tags = Collections.singleton(transactionDetails.getCryptoCurrency().toLowerCase());
ITransactionDetails updated = ctx.updateTransaction(rid, null, null, tags);
log.info("Transaction updated; tags: {}", updated.getTags());
} catch (UpdateException e) {
Expand Down

0 comments on commit b1556b4

Please sign in to comment.