diff options
Diffstat (limited to 'lib/db')
| -rw-r--r-- | lib/db/index.js | 3 |
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 |
