mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-28 22:31:22 -05:00
Fix people with already having access causing 400 error in voting
This commit is contained in:
@@ -10,7 +10,6 @@ import {
|
||||
import { COMMON_USER_FIELDS } from "~/utils/kysely.server";
|
||||
import type { Unwrapped } from "~/utils/types";
|
||||
import * as PlusSuggestionRepository from "~/features/plus-suggestions/PlusSuggestionRepository.server";
|
||||
import invariant from "tiny-invariant";
|
||||
|
||||
const resultsByMonthYearQuery = (args: MonthYear) =>
|
||||
db
|
||||
@@ -89,7 +88,6 @@ export async function usersForVoting(loggedInUser: {
|
||||
rangeToMonthYear(nextNonCompletedVoting(new Date())),
|
||||
)
|
||||
).filter((suggestion) => suggestion.tier === loggedInUser.plusTier);
|
||||
invariant(suggestedUsers);
|
||||
|
||||
const result: UsersForVoting = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user