Skip to content

Commit 09b1465

Browse files
Select only repoId from reports table
1 parent 8921e46 commit 09b1465

File tree

1 file changed

+4
-1
lines changed
  • src/app/(public)/repos/[language]

1 file changed

+4
-1
lines changed

src/app/(public)/repos/[language]/page.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ async function getRepos(
144144

145145
async function getReportedRepos() {
146146
const client = getXataClient();
147-
const reports = await client.db.reports.filter({ valid: false }).getMany();
147+
const reports = await client.db.reports
148+
.select(['repoId'])
149+
.filter({ valid: false })
150+
.getMany();
148151

149152
return reports;
150153
}

0 commit comments

Comments
 (0)