ruists / gbf-tracker-api

Node.js server to serve API for Granblue Fantasy collection trackers.
GNU General Public License v3.0
0 stars 0 forks source link

Update Character #4

Closed ruists closed 4 years ago

ruists commented 4 years ago

The POST method needs to be updated to check for the existence of multiple WeaponTypes, in case a character has 2. (right now it assumes the received body only contains the ID of a single weapon type, instead of an array of max. 2 as it should be)

ruists commented 4 years ago

To better serve the purpose of the project, there should also be a base character model/schema that dictates the basic character details, making it so that the character schema only represents an individual user's owned character.

As such, the changes mentioned above should be applied to a baseCharacter, with it having data that is constant between all instances of the same character (rarity, element, etc).

ruists commented 4 years ago

91ae4a6c0a9c8ba63f2d69540d35ed8aa7ec99e4 e872c79a50f47c957b772428fa58253d7cff656c