mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-06-04 10:14:47 +08:00
style: apply prettier formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -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) };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user