From 9ef8bb4cdc77cc1bdcff3e3541dae1f8ca56211f Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 3 Jan 2014 17:22:23 -0500 Subject: [PATCH] woops, fail at iteration --- src/upgrade.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/upgrade.js b/src/upgrade.js index 113a93eac6..3c1dc1bccb 100644 --- a/src/upgrade.js +++ b/src/upgrade.js @@ -121,8 +121,8 @@ Upgrade.upgrade = function(callback) { } for (var cid in cids) { - db.setObjectField('category:' + cid, 'link', ''); - db.setObjectField('category:' + cid, 'class', 'col-md-3 col-xs-6'); + db.setObjectField('category:' + cids[cid], 'link', ''); + db.setObjectField('category:' + cids[cid], 'class', 'col-md-3 col-xs-6'); } winston.info('[2013/12/31] Added categories.class, categories.link fields');