summaryrefslogtreecommitdiff
path: root/lib/db/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-24 13:52:25 -0400
committerJules Laplace <jules@okfoc.us>2015-09-24 13:52:25 -0400
commit456814755f8c2559f08b6d4d4635a5ea6bc495f0 (patch)
tree569b559d7af4b481c19b58fe0c6aaeef19c9f6e6 /lib/db/index.js
parentb817d4472ca905a0d380cf686ffa62f62297574a (diff)
browser functionality all working
Diffstat (limited to 'lib/db/index.js')
-rw-r--r--lib/db/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db/index.js b/lib/db/index.js
index b7b1b06..81c3af2 100644
--- a/lib/db/index.js
+++ b/lib/db/index.js
@@ -23,7 +23,7 @@ db.getLatest = function () {
}
db.getRandom = function () {
return Image.query(function(qb){
- qb.orderBy(knex.raw('RANDOM()')).limit(1)
+ qb.orderBy(knex.raw('RAND()')).limit(1)
}).fetch()
}