Enrolled devices should be shown with latest first (#544)

Co-authored-by: sathira <Sathira@entgra.io>
Reviewed-on: #544
Co-authored-by: Sathira Perera <sathira@entgra.io>
Co-committed-by: Sathira Perera <sathira@entgra.io>
master
Sathira Perera 2 months ago committed by Navod Zoysa
parent 9e34ec99aa
commit 7eb53adca9

@ -180,8 +180,7 @@ public class GenericDeviceDAOImpl extends AbstractDeviceDAOImpl {
} else { } else {
sql += " GROUP BY e.ID "; sql += " GROUP BY e.ID ";
} }
sql += ") "; sql += ") ORDER BY d1.LAST_UPDATED_TIMESTAMP DESC LIMIT ? OFFSET ?";
sql += " LIMIT ? OFFSET ?";
try (PreparedStatement stmt = conn.prepareStatement(sql)) { try (PreparedStatement stmt = conn.prepareStatement(sql)) {
int paramIdx = 1; int paramIdx = 1;

Loading…
Cancel
Save