We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aae7a1 commit f311434Copy full SHA for f311434
server/utils/storage.ts
@@ -217,6 +217,10 @@ export async function publishQuestion(questionId: string): Promise<Question | un
217
218
// Clear all answers when publishing new question
219
await fs.writeFile(ANSWERS_FILE, JSON.stringify([]))
220
+
221
+ // Broadcast the new question as a results update
222
+ const results = await getResultsForQuestion(question.id)
223
+ broadcast('results-update', results)
224
}
225
return question
226
0 commit comments