diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d002a0c45..91314a322 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -18,7 +18,7 @@ on:
jobs:
run-unit-tests:
- runs-on: ubuntu-18.04
+ runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
diff --git a/pom.xml b/pom.xml
index a6fc02ebc..d6d6bab4f 100755
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
opensrp-server-core
jar
- 2.14.7-SNAPSHOT
+ 2.14.8-SNAPSHOT
opensrp-server-core
OpenSRP Server Core module
https://github.com/OpenSRP/opensrp-server-core
diff --git a/src/main/java/org/opensrp/repository/postgres/UniqueIdRepositoryImpl.java b/src/main/java/org/opensrp/repository/postgres/UniqueIdRepositoryImpl.java
index 4d531106e..a6cf83cb1 100644
--- a/src/main/java/org/opensrp/repository/postgres/UniqueIdRepositoryImpl.java
+++ b/src/main/java/org/opensrp/repository/postgres/UniqueIdRepositoryImpl.java
@@ -87,7 +87,7 @@ public UniqueId findByIdentifierSourceOrderByIdDesc(Long idSource) {
example.createCriteria().andIdSourceEqualTo(idSource);
example.setOrderByClause("id DESC");
- List uniqueIds = uniqueIdMapper.selectByExample(example);
+ List uniqueIds = uniqueIdMapper.selectMany(example, 0, 1);
List convertedUniqueIds = convert(uniqueIds);
return convertedUniqueIds != null && convertedUniqueIds.size() >= 1 ? convertedUniqueIds.get(0) : null;
}