Closed thestrugglingblack closed 6 years ago
https://github.com/mapbox/to-fix-internal/issues/519
Updates tag model to support the name of the user who adds a tag to a particular item.
database/index.js
database/itemtag.js
migrations/20180322155410-add_itemtag_table.js
routes/tags.js
authorName
authorId
test/
Ticket Number
https://github.com/mapbox/to-fix-internal/issues/519
Description
Updates tag model to support the name of the user who adds a tag to a particular item.
Areas of Change
database/index.js
: updated association between Tag and Item to be done through the ItemTag tabledatabase/itemtag.js
: create the itemtag model.migrations/20180322155410-add_itemtag_table.js
: migration for updating the db with the new itemtag modelroutes/tags.js
: modify createItemTag method to fill inauthorName
andauthorId
fieldstest/
: update all tests to support new property.Test