links info

This commit is contained in:
2025-04-07 22:17:53 +08:00
parent 0c4a67e769
commit f782dba0c9
2 changed files with 110 additions and 21 deletions

View File

@@ -30,7 +30,7 @@ export async function GET(request: NextRequest) {
}
if (team) {
whereConditions.push(`hasToken(teams, 'team_id', '${team}')`);
whereConditions.push(`arrayExists(x -> JSONExtractString(x, 'team_id') = '${team}', JSONExtractArrayRaw(teams))`);
}
const whereClause = whereConditions.join(' AND ');