mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixed EMM-1001
This commit is contained in:
parent
d779022123
commit
d95a198ad6
@ -609,7 +609,7 @@ public abstract class AbstractDeviceDAOImpl implements DeviceDAO {
|
||||
stmt.setString(index++, status.toString());
|
||||
stmt.setInt(index, tenantId);
|
||||
rs = stmt.executeQuery();
|
||||
if (rs.next()) {
|
||||
while (rs.next()) {
|
||||
enrolments.add(DeviceManagementDAOUtil.loadEnrolment(rs));
|
||||
}
|
||||
return enrolments;
|
||||
|
||||
@ -97,7 +97,7 @@ public class OperationManagerImpl implements OperationManager {
|
||||
List<EnrolmentInfo> enrolments;
|
||||
try {
|
||||
DeviceManagementDAOFactory.openConnection();
|
||||
enrolments = deviceDAO.getEnrolmentsByStatus(deviceIds, EnrolmentInfo.Status.ACTIVE, tenantId);
|
||||
enrolments = deviceDAO.getEnrolmentsByStatus(authorizedDeviceList, EnrolmentInfo.Status.ACTIVE, tenantId);
|
||||
} catch (SQLException e) {
|
||||
throw new OperationManagementException("Error occurred while opening a connection the data " +
|
||||
"source", e);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user