summaryrefslogtreecommitdiff
path: root/lib/db/index.js
diff options
context:
space:
mode:
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