style: apply prettier formatting

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Koshkoshinsk
2026-04-14 14:49:15 +00:00
parent d92d75e173
commit 42467d796d
5 changed files with 16 additions and 11 deletions

View File

@@ -92,9 +92,9 @@ export function createPendingQuestion(pq: PendingQuestion): void {
}
export function getPendingQuestion(questionId: string): PendingQuestion | undefined {
const row = getDb()
.prepare('SELECT * FROM pending_questions WHERE question_id = ?')
.get(questionId) as (Omit<PendingQuestion, 'options'> & { options_json: string }) | undefined;
const row = getDb().prepare('SELECT * FROM pending_questions WHERE question_id = ?').get(questionId) as
| (Omit<PendingQuestion, 'options'> & { options_json: string })
| undefined;
if (!row) return undefined;
const { options_json, ...rest } = row;
return { ...rest, options: JSON.parse(options_json) };