Browse files

zset

  • Loading branch information...
1 parent ca06405 commit dc2554fd34cb734e86734bda5315923c2c772951 @tj tj committed Dec 18, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 events.js
View
2 events.js
@@ -6,6 +6,8 @@ var db = app.db;
*/
app.on('screenshot', function(path, id){
+ db.zadd('screenshots', Date.now(), id);
+
db.hmset('screenshot:' + id, {
path: path,
id: id

0 comments on commit dc2554f

Please sign in to comment.