Fix failing tests

This commit is contained in:
Girish Ramakrishnan
2019-01-04 10:04:28 -08:00
parent b9daa62ece
commit 635557ca45
6 changed files with 8 additions and 6 deletions

View File

@@ -100,7 +100,7 @@ function listByTypePaged(type, page, perPage, callback) {
data.push(type);
}
query += ' ORDER BY creationTime DESC LIMIT ?,?';
query += ' ORDER BY creationTime DESC, id DESC LIMIT ?,?'; // put latest task first
data.push((page-1)*perPage);
data.push(perPage);