pinterest / api-quickstart

Code that makes it easy to get started with the Pinterest API.
Apache License 2.0
125 stars 46 forks source link

nodejs: fix duplicate pin bug in v5 copy_board and get_board #6

Closed davidchaiken closed 3 years ago

davidchaiken commented 3 years ago

v5 board.get_pins returns pins on sections in addition to pins on the main board. v3 board.get_pins only returns pins on the main board. The python code handled this case properly, but was not translated correctly to nodejs. This PR corrects the nodejs behavior for the code in copy_board and get_board that uses board.get_pins.