Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change data[index] to item

  • Loading branch information...
commit 5f3255f8c3ada4f40163b337efbf16f734c114c5 1 parent 04f0f00
@frozzare authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/pinboard-couchdb.js
View
4 examples/pinboard-couchdb.js
@@ -13,9 +13,9 @@ pinboard.config({
pinboard.all(function(data) {
data.forEach(function(item, index) {
- db.save("pin" + index, data[index], function (err, res) {
+ db.save("pin" + index, item, function (err, res) {
if (err) throw err;
- console.log( data[index].href + ' saved!' )
+ console.log( item.href + ' saved!' )
});
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.