Closed L-Mario564 closed 1 month ago
Everything seems good so far. Although
TRPCChecks('create a tournament')
kind of expression seems to be a bit of off-putting to me, but it's not that big of a deal anyway
As discussed on Discord, I'll update it so it reads better.
new TRPCChecks({ action: 'create a tournament' });
This PR updates the
updateTournament
tRPC procedure to match the specifications described in #48. I've also made aChecks
class that simplifies common checks.Example of these checks:
When using in tRPC procedures, use
TRPCChecks
; when using in API routes, useAPIChecks
.