Skip to content

Commit

Permalink
Fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
c-geek committed Dec 22, 2016
1 parent dc66783 commit a1aec7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/dal/sqliteDAL/index/IIndexDAL.js
Expand Up @@ -114,7 +114,7 @@ function IIndexDAL(driver) {
if (reducable.length) {
if (retrieveOnField) {
// Force full retrieval on `pub` field
reducable = yield that.query('SELECT * FROM ' + that.table + ' WHERE pub = ? ORDER BY (CAST written_on as int) ASC', [reducable[0].pub]);
reducable = yield that.query('SELECT * FROM ' + that.table + ' WHERE pub = ? ORDER BY CAST(written_on as int) ASC', [reducable[0].pub]);
}
return toCorrectEntity(indexer.DUP_HELPERS.reduce(reducable));
}
Expand Down

0 comments on commit a1aec7f

Please sign in to comment.