修正用戶管理查詢失敗問題

This commit is contained in:
2025-08-05 11:55:29 +08:00
parent 65e9c411bf
commit 279720e276
3 changed files with 9 additions and 6 deletions

View File

@@ -54,8 +54,8 @@ export async function GET(request: NextRequest) {
GROUP BY judge_id
) review_stats ON u.id = review_stats.judge_id
ORDER BY u.created_at DESC
LIMIT ? OFFSET ?
`, [limit, offset]);
LIMIT ${limit} OFFSET ${offset}
`);
// 分頁資訊
const totalPages = Math.ceil(total / limit);