Simplify comments

This commit is contained in:
Kalle
2026-09-02 21:02:01 +03:00
parent fe797e1891
commit 6a307ce59e
770 changed files with 4302 additions and 11417 deletions

View File

@@ -32,8 +32,7 @@ type ResultsByMonthYearQueryReturnType = InferResult<
>;
export async function findAllPlusTiersFromLatestVoting() {
// resolving month & year separately first allows SQLite to push the
// filtering down into the PlusVotingResult view's aggregation
// resolving month & year first lets SQLite push the filter into the PlusVotingResult view
const latestVoting = await db
.selectFrom("PlusVote")
.select(["PlusVote.year", "PlusVote.month"])
@@ -152,8 +151,7 @@ export async function findAllUsersForVoting(loggedInUser: {
tier: loggedInUser.plusTier,
});
// the suggestions page does not render bios, so they are not part of a
// suggestion and are looked up for the voting page separately
// bios are not part of a suggestion (the suggestions page does not render them)
const suggestedUserBios = await findBiosByUserIds(
suggestedUsers.map((suggestion) => suggestion.suggested.id),
);