summaryrefslogtreecommitdiff
path: root/lib/db/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-24 20:06:22 -0400
committerJules Laplace <jules@okfoc.us>2015-09-24 20:06:22 -0400
commit8af5560079066b2db70524c92dc783945cd70cad (patch)
tree1d957ed770237ee26d90da8acc4e32fb04569344 /lib/db/index.js
parent2f653bb7992dc597ee7829dd5dd9a651cd9ea3fb (diff)
upload working
Diffstat (limited to 'lib/db/index.js')
-rw-r--r--lib/db/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/db/index.js b/lib/db/index.js
index 81c3af2..7bcb9ea 100644
--- a/lib/db/index.js
+++ b/lib/db/index.js
@@ -27,3 +27,6 @@ db.getRandom = function () {
}).fetch()
}
+db.createImage = function(url){
+ return new Image({ url: url, shorturl: "" }).save()
+} \ No newline at end of file