reset match logic
This commit is contained in:
@@ -55,6 +55,11 @@ export function createMatchesService(pb: PocketBase) {
|
||||
return result;
|
||||
},
|
||||
|
||||
async deleteMatch(id: string): Promise<void> {
|
||||
logger.info("PocketBase | Deleting match", id);
|
||||
await pb.collection("matches").delete(id);
|
||||
},
|
||||
|
||||
async deleteMatchesByTournament(tournamentId: string): Promise<void> {
|
||||
logger.info("PocketBase | Deleting matches for tournament", tournamentId);
|
||||
const matches = await pb.collection("matches").getFullList({
|
||||
|
||||
Reference in New Issue
Block a user