fixed addTournament procedure for default status

This commit is contained in:
Owen Rees
2023-09-25 21:07:54 +02:00
parent 14084aa671
commit 6d48efd3ca
3 changed files with 2 additions and 6818 deletions
+1
View File
@@ -31,6 +31,7 @@ export const addTournament = publicProcedure
coordinates: tournament.coordinates as [number, number], coordinates: tournament.coordinates as [number, number],
entry_method: "manual", entry_method: "manual",
pending: true, pending: true,
status: 'scheduled'
}; };
const result = await db.insertOne(tournamentData); const result = await db.insertOne(tournamentData);
-6817
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,7 +1,7 @@
import { LatLngLiteral } from "leaflet"; import { LatLngLiteral } from "leaflet";
import { ObjectId } from "mongodb"; import { ObjectId } from "mongodb";
type Status = "scheduled" | "ongoing" | "finished"; export type Status = "scheduled" | "ongoing" | "finished";
export type TournamentData = { export type TournamentData = {
_id: ObjectId; _id: ObjectId;