Skip to content

Commit

Permalink
fix(captures): delete by dex_id instead of user_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Joseph committed Nov 14, 2016
1 parent ad52815 commit b1ea703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/features/captures/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ exports.delete = function (payload, auth) {

return new Capture().query((qb) => {
qb.whereIn('pokemon_id', payload.pokemon);
qb.where('user_id', payload.dex);
qb.where('dex_id', payload.dex);
}).destroy();
})
.then(() => ({ deleted: true }))
Expand Down

0 comments on commit b1ea703

Please sign in to comment.