hackmcgill / hackerAPI

🐓 API for registration, live-site
https://api.mchacks.ca
MIT License
22 stars 8 forks source link

fix: team api fixes for creating and deleting a team #887

Closed ronyboi closed 1 year ago

ronyboi commented 1 year ago

List of changes:

Removed the @IsString() annotation which forced it to be non-null. This broke the creation of a new team. Added a new piece of logic to removeMember which checks to see whether we just removed the last member of the team. If so, it deletes the team object as well.

Part of jacky/refactor (typescript refactor)

Type of change

Please delete options that are not relevant.