This commit is contained in:
parent
72fd5778ae
commit
a15257e044
@ -202,10 +202,11 @@ const submitContestForm = async () => {
|
|||||||
event.competitors.forEach(competitor => {
|
event.competitors.forEach(competitor => {
|
||||||
const combinedTime = competitor.time.minutes.toString().padStart(2, '0') + competitor.time.seconds.toString().padStart(2, '0') + competitor.time.milliseconds.toString().padStart(2, '0')
|
const combinedTime = competitor.time.minutes.toString().padStart(2, '0') + competitor.time.seconds.toString().padStart(2, '0') + competitor.time.milliseconds.toString().padStart(2, '0')
|
||||||
|
|
||||||
|
|
||||||
const docRef = doc(collection(db, 'timings'))
|
const docRef = doc(collection(db, 'timings'))
|
||||||
batch.set(docRef, {
|
batch.set(docRef, {
|
||||||
relatiecode: competitor.relatiecode,
|
relatiecode: competitor.relatiecode,
|
||||||
contest: { location: contest.value.location, date: contest.value.date.toString(), type: contest.value.type },
|
contest: { location: contest.value.location, date: contest.value.date, type: contest.value.type },
|
||||||
event: event.id,
|
event: event.id,
|
||||||
time: { minutes: competitor.time.minutes.toString().padStart(2, '0'), seconds: competitor.time.seconds.toString().padStart(2, '0'), milliseconds: competitor.time.milliseconds.toString().padStart(2, '0'), combined: combinedTime },
|
time: { minutes: competitor.time.minutes.toString().padStart(2, '0'), seconds: competitor.time.seconds.toString().padStart(2, '0'), milliseconds: competitor.time.milliseconds.toString().padStart(2, '0'), combined: combinedTime },
|
||||||
dsq: competitor.dsq,
|
dsq: competitor.dsq,
|
||||||
|
Loading…
Reference in New Issue
Block a user