style: apply prettier formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -164,9 +164,9 @@ export function getAskQuestionRender(
|
|||||||
): { title: string; options: import('../channels/ask-question.js').NormalizedOption[] } | undefined {
|
): { title: string; options: import('../channels/ask-question.js').NormalizedOption[] } | undefined {
|
||||||
const q = getPendingQuestion(id);
|
const q = getPendingQuestion(id);
|
||||||
if (q) return { title: q.title, options: q.options };
|
if (q) return { title: q.title, options: q.options };
|
||||||
const a = getDb()
|
const a = getDb().prepare('SELECT title, options_json FROM pending_approvals WHERE approval_id = ?').get(id) as
|
||||||
.prepare('SELECT title, options_json FROM pending_approvals WHERE approval_id = ?')
|
| { title: string; options_json: string }
|
||||||
.get(id) as { title: string; options_json: string } | undefined;
|
| undefined;
|
||||||
if (!a || !a.title) return undefined;
|
if (!a || !a.title) return undefined;
|
||||||
return { title: a.title, options: JSON.parse(a.options_json) };
|
return { title: a.title, options: JSON.parse(a.options_json) };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user