diff --git a/server/api/routes/firebaseAPI.ts b/server/api/routes/firebaseAPI.ts index c21fe19..20abeb1 100644 --- a/server/api/routes/firebaseAPI.ts +++ b/server/api/routes/firebaseAPI.ts @@ -87,7 +87,11 @@ router.post("/commit-session", async (req, res) => { batch.set(artistRef, artist); batch.set(surveyRef, { artistId: artistRef.id, ...surveyData }); - batch.set(poemRef, { artistId: artistRef.id, ...poemData }); + batch.set(poemRef, { + artistId: artistRef.id, + ...poemData, + random: Math.random(), + }); batch.delete(incompleteRef); await batch.commit();