From f424f763c41e5b4b1038889d276038f0ff87bb9f Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Mon, 21 Oct 2024 10:36:28 +0100 Subject: [PATCH] feat: Delete Space.getSpaceByDisplayName API - Meeds-io/MIPs#150 This change will delete the usage of getSpaceByDisplayName API since it's not unique anymore --- .../src/main/java/io/meeds/wallet/utils/WalletUtils.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wallet-api/src/main/java/io/meeds/wallet/utils/WalletUtils.java b/wallet-api/src/main/java/io/meeds/wallet/utils/WalletUtils.java index 233074e42..983665cdd 100644 --- a/wallet-api/src/main/java/io/meeds/wallet/utils/WalletUtils.java +++ b/wallet-api/src/main/java/io/meeds/wallet/utils/WalletUtils.java @@ -489,10 +489,7 @@ public static Space getSpace(String id) { if (space == null) { space = spaceService.getSpaceByGroupId("/spaces/" + id); if (space == null) { - space = spaceService.getSpaceByDisplayName(id); - if (space == null) { - space = spaceService.getSpaceById(id); - } + space = spaceService.getSpaceById(id); } } return space;