Skip to content

Conversation

@jmgasper
Copy link
Collaborator

@jmgasper jmgasper commented Nov 1, 2025

No description provided.

@jmgasper jmgasper merged commit 0ec7859 into develop Nov 1, 2025
4 checks passed
];

const joinClause = joinSqlFragments(
[...baseJoins, ...metricJoins],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
The joinSqlFragments function is used to concatenate SQL fragments without a separator. Ensure that this is intentional and that no separator is needed between the baseJoins and metricJoins. If a separator is required, this could lead to incorrect SQL syntax.

[...baseJoins, ...metricJoins],
Prisma.sql``,
);
const countJoinClause = joinSqlFragments(baseJoins, Prisma.sql``);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
The countJoinClause only includes baseJoins. Verify that excluding metricJoins from the count query is intentional. If metrics affect the count, this could lead to incorrect results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants