From 4320bd0c8b23359de72025430c2fa142454f74b0 Mon Sep 17 00:00:00 2001 From: Sarah Wang Date: Sat, 14 Mar 2026 20:55:06 -0400 Subject: [PATCH] impl --- server/api/routes/firebaseAPI.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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();