This commit is contained in:
2026-06-24 15:10:50 +02:00
commit a3e7512f95
212 changed files with 212927 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { firebaseFirestore } from "../../firebase"
export const getTourneyInfo = async (id) => {
const tournamentsRef = firebaseFirestore.collection('tournaments').doc(id)
const tournamentData = await tournamentsRef.get();
if (tournamentData.exists == false) {
return {}
}
else {
const name = tournamentData.data().name
const year = tournamentData.data().year
const format = tournamentData.data().format
return {
name,
year,
format
}
}
}