eolculnamo2 / tournament-app

Svelte/.Net
2 stars 0 forks source link

prevent neg score, setup winner object for post #18

Closed lwood54 closed 5 years ago

lwood54 commented 5 years ago

I tried using the postData function. I couldn't quite tell if BE for route was done or if I wasn't using your function correctly, but I was getting an error on post. Also, in IMatch.ts there was an event field and tournamentId. Should these be created on FE or generated on an instance when saving/posting match results.

eolculnamo2 commented 5 years ago

Event should always be there. It describes the competition the competitors will have. These values will ultimately originate come from the backend. You can add mock data in them for now. 👍