Skip to content

Commit

Permalink
merge with hotfix/unique-id-optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
hilpitome committed Jan 31, 2024
2 parents bfa0aba + 736b952 commit 27f0266
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<artifactId>opensrp-server-core</artifactId>
<packaging>jar</packaging>
<version>2.14.9-ALPHA-SNAPSHOT</version>
<version>2.14.9-SNAPSHOT</version>
<name>opensrp-server-core</name>
<description>OpenSRP Server Core module</description>
<url>https://github.com/OpenSRP/opensrp-server-core</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public UniqueId findByIdentifierSourceOrderByIdDesc(Long idSource) {
example.createCriteria().andIdSourceEqualTo(idSource);
example.setOrderByClause("id DESC");

List<org.opensrp.domain.postgres.UniqueId> uniqueIds = uniqueIdMapper.selectByExample(example);
List<org.opensrp.domain.postgres.UniqueId> uniqueIds = uniqueIdMapper.selectMany(example, 0, 1);
List<UniqueId> convertedUniqueIds = convert(uniqueIds);
return convertedUniqueIds != null && convertedUniqueIds.size() >= 1 ? convertedUniqueIds.get(0) : null;
}
Expand Down

0 comments on commit 27f0266

Please sign in to comment.