Skip to content

Commit

Permalink
Fix sql error in collectFileStats
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhaixian1984 committed Jul 25, 2024
1 parent c64c54a commit d0b28a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tasks/telemetry-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ async function collectFileStats(database): Promise<FileStats> {
const { totalCount } = await database.get(
`select count(*) as totalCount from file_record`,
);
const countByStatusResults = await database.get(
`select status, count(1) from file_record group by status`,
const countByStatusResults = await database.all(
`select status, count(1) as count from file_record group by status`,
);

const fileStats = {
Expand Down

0 comments on commit d0b28a8

Please sign in to comment.