mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
fixed addTournament procedure for default status
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Generated
-6817
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user