diff options
| author | Jules <jules@asdf.us> | 2018-03-31 09:10:55 -0400 |
|---|---|---|
| committer | Jules <jules@asdf.us> | 2018-03-31 09:10:55 -0400 |
| commit | 19d8a1315cfaa51cb342570cd31df525e56e0513 (patch) | |
| tree | e1dc944b653a5be2e2e3eb4144ba832f730e1449 /lib/db/index.js | |
| parent | 2e20acf6ed26e52cff721cb891dbb8b788b57724 (diff) | |
fix router order
Diffstat (limited to 'lib/db/index.js')
| -rw-r--r-- | lib/db/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db/index.js b/lib/db/index.js index 573528d..6e36602 100644 --- a/lib/db/index.js +++ b/lib/db/index.js @@ -31,7 +31,7 @@ db.getRandom = function () { } db.getRandomAscii = function () { return ShaderImage.query(function(qb){ - qb.where("tag", "=", "ascii").orderBy(knex.raw('RAND()')).limit(1) + qb.where("tag", "ascii").orderBy(knex.raw('RAND()')).limit(1) }).fetch() } db.getIndex = function(limit, offset) { |
