We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfc3863 commit 35382a3Copy full SHA for 35382a3
src/routes/api/configs/public/+server.ts
@@ -83,6 +83,7 @@ export const GET: RequestHandler = async ({ platform, url }) => {
83
const countQuery = `
84
SELECT COUNT(*) as count
85
FROM configs c
86
+ JOIN users u ON c.user_id = u.id
87
WHERE ${whereClause}
88
AND (
89
c.install_count > 0
@@ -95,7 +96,7 @@ export const GET: RequestHandler = async ({ platform, url }) => {
95
96
)
97
98
`;
- const countResult = await env.DB.prepare(countQuery).first<{ count: number }>();
99
+ const countResult = await env.DB.prepare(countQuery).first<{ count: number}>();
100
total = countResult?.count || 0;
101
}
102
0 commit comments