stockpile-co / api

The API for Stockpile, an app that manages stuff for organizations.
0 stars 1 forks source link

Fix updating custom field categories #326

Closed emroussel closed 7 years ago

emroussel commented 7 years ago

When sending a new list of categories to PUT /api/custom-field/:customFieldID/category, instead of replacing the old list of categories, it adds the new ones to it.

The response of the PUT call is correct, but when we GET /api/custom-field/:customFieldID/category, it returns the old categories as well.