Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: pick peer property from querystring, fix tests
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
  • Loading branch information
alanshaw committed Jun 18, 2018
1 parent a2cf838 commit 0c36ab5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/http/api/resources/bitswap.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports = module.exports

exports.wantlist = {
handler: (request, reply) => {
const peerId = request.query.arg
const peerId = request.query.peer
request.server.app.ipfs.bitswap.wantlist(peerId, (err, list) => {
if (err) {
return reply(boom.badRequest(err))
Expand Down
1 change: 1 addition & 0 deletions test/core/interface/interface.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ describe('interface-ipfs-core tests', () => {
require('./stats')
require('./key')
if (isNode) {
require('./bitswap')
require('./swarm')
require('./ping')
require('./pubsub')
Expand Down
1 change: 0 additions & 1 deletion test/http-api/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

require('./bitswap')
require('./block')
require('./bootstrap')
require('./config')
Expand Down

0 comments on commit 0c36ab5

Please sign in to comment.