changed the substring to be pk for communities of arbitrary name length

This commit is contained in:
Miriam Baglioni 2021-04-07 13:22:54 +02:00
parent c52355b516
commit f95ec49a59
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ public class DumpProducts implements Serializable {
return c.getId();
}
if (c.getId().contains("::") && communities.contains(c.getId().substring(0, c.getId().indexOf("::")))) {
return c.getId().substring(0, 3);
return c.getId().substring(0, c.getId().indexOf("::"));
}
return null;
}).filter(Objects::nonNull).collect(Collectors.toList());