Fix lint errors: shadow eq import and != operator
All checks were successful
🚀 Deploy / 🧪 Test (pull_request) Successful in 2m26s
🚀 Deploy / ʦ🔍 Typecheck & Lint (pull_request) Successful in 1m19s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped

https://claude.ai/code/session_01CoRLHERakMncbPs877izvw
This commit is contained in:
Claude 2026-06-04 21:06:11 +00:00
parent 553c565951
commit b13822c474
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -155,9 +155,9 @@ export async function findDraftableSportsSeasonBySportId(sportId: string) {
const db = database();
const today = sql`CURRENT_DATE`;
return await db.query.sportsSeasons.findFirst({
where: (ss, { and, eq }) =>
and(
eq(ss.sportId, sportId),
where: (ss, ops) =>
ops.and(
ops.eq(ss.sportId, sportId),
lte(ss.draftOn, today),
gte(ss.draftOff, today),
isNull(ss.fantasySeasonId)

View file

@ -114,7 +114,7 @@ export async function loader(args: Route.LoaderArgs) {
...template,
sportsSeasonIds: (t?.seasonTemplateSports ?? [])
.map((ts: { sportId: string }) => draftableSeasonBySportId.get(ts.sportId)?.id)
.filter((id): id is string => id != null),
.filter((id): id is string => id !== null && id !== undefined),
};
})
);