diff options
Diffstat (limited to 'lib/db/index.js')
| -rw-r--r-- | lib/db/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/db/index.js b/lib/db/index.js index e6a9d78..9720235 100644 --- a/lib/db/index.js +++ b/lib/db/index.js @@ -33,6 +33,6 @@ db.getRandom = function () { db.createImage = function(url){ return new Image({ url: url }).save() } -db.createShaderImage = function(url){ - return new ShaderImage({ url: url }).save() +db.createShaderImage = function(data){ + return new ShaderImage(data).save() } |
