From b1556b4b350a1c2e4bb16da79c494732c67ed243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maro=C5=A1=20Silady?= <38668012+SMaros@users.noreply.github.com> Date: Wed, 13 Sep 2023 12:45:04 +0200 Subject: [PATCH] LC-163 - Lowercase transaction tags example extension (#841) --- .../server/extensions/extra/examples/TransactionExtension.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/examples/TransactionExtension.java b/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/examples/TransactionExtension.java index a8921d20f..c0c91e4c0 100644 --- a/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/examples/TransactionExtension.java +++ b/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/examples/TransactionExtension.java @@ -72,7 +72,7 @@ public Map onTransactionUpdated(ITransactionDetails transactionD String organizationId = ctx.findIdentityByIdentityId(transactionDetails.getIdentityPublicId()).getOrganization().getId(); log.info("Defined transaction tags: {}", ctx.getTransactionTags(organizationId)); - Set tags = Collections.singleton(transactionDetails.getCryptoCurrency()); + Set tags = Collections.singleton(transactionDetails.getCryptoCurrency().toLowerCase()); ITransactionDetails updated = ctx.updateTransaction(rid, null, null, tags); log.info("Transaction updated; tags: {}", updated.getTags()); } catch (UpdateException e) {