Permalink
Browse files

emit more info in accounts list

  • Loading branch information...
1 parent cdfb422 commit f58e3905257a2c52a81a968bfcb38021dc813350 @jchris committed Sep 1, 2010
@@ -3,7 +3,7 @@ function(resp) {
twitter_accounts : []
};
for (var i=0; i < resp.rows.length; i++) {
- data.twitter_accounts.push({name:resp.rows[i].key});
+ data.twitter_accounts.push({name:resp.rows[i].value.access_params.screen_name});
};
return data;
};
@@ -19,3 +19,5 @@
database that only the user, and the Twebz application can access. This will
store private information used for communicating with Twitter. Once this step
is complete, the user can continue by linking Twitter accounts to Twebz.</p>
+
+<p><a href="#deploy">Update user design docs</a></p>
@@ -3,7 +3,7 @@ function(resp) {
twitter_accounts : []
};
for (var i=0; i < resp.rows.length; i++) {
- data.twitter_accounts.push({name:resp.rows[i].key});
+ data.twitter_accounts.push({name:resp.rows[i].value.access_params.screen_name});
};
return data;
};
@@ -1,5 +1,5 @@
function(doc) {
if (doc.state == "has_access" && doc.access_params) {
- emit(doc.access_params.user_id, doc);
+ emit(parseInt(doc.access_params.user_id), doc);
}
};

0 comments on commit f58e390

Please sign in to comment.