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 15:31:48 +00:00
parent 63746dfeb3
commit 8430e543c1
+3 -3
View File
@@ -164,9 +164,9 @@ export function getAskQuestionRender(
): { title: string; options: import('../channels/ask-question.js').NormalizedOption[] } | undefined {
const q = getPendingQuestion(id);
if (q) return { title: q.title, options: q.options };
const a = getDb()
.prepare('SELECT title, options_json FROM pending_approvals WHERE approval_id = ?')
.get(id) as { title: string; options_json: string } | undefined;
const a = getDb().prepare('SELECT title, options_json FROM pending_approvals WHERE approval_id = ?').get(id) as
| { title: string; options_json: string }
| undefined;
if (!a || !a.title) return undefined;
return { title: a.title, options: JSON.parse(a.options_json) };
}