Closed Drarig29 closed 3 years ago
Currently, manager.get.stageData() returns an object of type StageData.
manager.get.stageData()
StageData
interface StageData { stage: Stage, groups: Group[], rounds: Round[], matches: Match[], participants: Participant[], }
The idea would be to return an object similar to the database. And also return the match games (need to do https://github.com/Drarig29/brackets-model/issues/4 before).
We would then be able to get rid of manager.get.matchChildren(), which is useless because it does nothing more than using storage.select().
manager.get.matchChildren()
storage.select()
Update manager.import() and manager.export() tests after this change (use match games).
manager.import()
manager.export()
Currently,
manager.get.stageData()
returns an object of typeStageData
.The idea would be to return an object similar to the database. And also return the match games (need to do https://github.com/Drarig29/brackets-model/issues/4 before).
We would then be able to get rid of
manager.get.matchChildren()
, which is useless because it does nothing more than usingstorage.select()
.