Fix lint errors: shadow eq import and != operator
https://claude.ai/code/session_01CoRLHERakMncbPs877izvw
This commit is contained in:
parent
553c565951
commit
b13822c474
2 changed files with 4 additions and 4 deletions
|
|
@ -155,9 +155,9 @@ export async function findDraftableSportsSeasonBySportId(sportId: string) {
|
||||||
const db = database();
|
const db = database();
|
||||||
const today = sql`CURRENT_DATE`;
|
const today = sql`CURRENT_DATE`;
|
||||||
return await db.query.sportsSeasons.findFirst({
|
return await db.query.sportsSeasons.findFirst({
|
||||||
where: (ss, { and, eq }) =>
|
where: (ss, ops) =>
|
||||||
and(
|
ops.and(
|
||||||
eq(ss.sportId, sportId),
|
ops.eq(ss.sportId, sportId),
|
||||||
lte(ss.draftOn, today),
|
lte(ss.draftOn, today),
|
||||||
gte(ss.draftOff, today),
|
gte(ss.draftOff, today),
|
||||||
isNull(ss.fantasySeasonId)
|
isNull(ss.fantasySeasonId)
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ export async function loader(args: Route.LoaderArgs) {
|
||||||
...template,
|
...template,
|
||||||
sportsSeasonIds: (t?.seasonTemplateSports ?? [])
|
sportsSeasonIds: (t?.seasonTemplateSports ?? [])
|
||||||
.map((ts: { sportId: string }) => draftableSeasonBySportId.get(ts.sportId)?.id)
|
.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),
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue