I want to update document but when I try to put serverTimestamp()
, document just doesn't updates:
await updateDoc(ref, {
'process.votings': arrayUnion({
finished: false,
timer: {
time: 60,
finishedAt: null,
startedAt: serverTimestamp()
},
votes: [],
winner: null,
candidates: candidates.map(candidate => candidate.id),
question: null
})
})
When I don't put serverTimestamp()
everything works just fine.
Comments
Post a Comment