mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-20 22:28:08 -05:00
[AI] Fix type error in CLI query command
Add type assertion for aqlQuery result to fix 'result is of type unknown' error introduced in #7240. https://claude.ai/code/session_01MnxRXLNjqXrVb5CdsC85Fb
This commit is contained in:
@@ -304,7 +304,8 @@ export function registerQueryCommand(program: Command) {
|
||||
? buildQueryFromFile(parsed, cmdOpts.table)
|
||||
: buildQueryFromFlags(cmdOpts);
|
||||
|
||||
const result = await api.aqlQuery(queryObj);
|
||||
const result =
|
||||
(await api.aqlQuery(queryObj)) as { data: unknown };
|
||||
|
||||
if (cmdOpts.count) {
|
||||
printOutput({ count: result.data }, opts.format);
|
||||
|
||||
Reference in New Issue
Block a user