Permalink
Browse files

Merge pull request #13 from ericabiz/hmset-expected-string-fix

Fix for "hmset expected value to be a string" error
  • Loading branch information...
2 parents 23ee707 + 87efc58 commit 372d4ee400d846b84116b07676cc1e9513672dd4 @tj tj committed Dec 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 routes/data.js
View
@@ -7,7 +7,7 @@ var db = app.db;
*/
app.on('screenshot', function(url, path, id){
- var now = Date.now();
+ var now = "" + Date.now();
console.log('screenshot - saving meta-data');
db.hset('screenshot:url:id', url, id);
db.zadd('screenshot:ids', now, id);

0 comments on commit 372d4ee

Please sign in to comment.