diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-09-24 20:06:22 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-09-24 20:06:22 -0400 |
| commit | 8af5560079066b2db70524c92dc783945cd70cad (patch) | |
| tree | 1d957ed770237ee26d90da8acc4e32fb04569344 /lib/db/index.js | |
| parent | 2f653bb7992dc597ee7829dd5dd9a651cd9ea3fb (diff) | |
upload working
Diffstat (limited to 'lib/db/index.js')
| -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 |
