Skip to content

Commit

Permalink
Include N/A in simsession_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinsina committed Apr 19, 2024
1 parent 4c1b9c4 commit b2dad1c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const allSeasonRaceResultsForUser = await db
and(
eq(SubsessionRaceResults.cust_id, Number(id)),
eq(SubsessionRaceResults.car_class_id, Number(carClassId)),
sql`${SubsessionRaceResults.simsession_name} IN ${["RACE", "FEATURE"]}`
sql`${SubsessionRaceResults.simsession_name} IN ${["RACE", "FEATURE", "N/A"]}`
)
);
const results = allSeasonSubsessions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const allSeasonRaceResultsForUser = await db
and(
eq(SubsessionRaceResults.cust_id, Number(id)),
eq(SubsessionRaceResults.car_class_id, Number(carClassId)),
sql`${SubsessionRaceResults.simsession_name} IN ${["RACE", "FEATURE"]}`
sql`${SubsessionRaceResults.simsession_name} IN ${["RACE", "FEATURE", "N/A"]}`
)
);
const subsessions = allSeasonSubsessions.filter((v) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const subsessionRaceResults = await db
and(
eq(SubsessionRaceResults.cust_id, Number(id)),
eq(SubsessionRaceResults.car_class_id, Number(carClassId)),
sql`${SubsessionRaceResults.simsession_name} IN ${["RACE", "FEATURE"]}`
sql`${SubsessionRaceResults.simsession_name} IN ${["RACE", "FEATURE", "N/A"]}`
)
);
const subsessionsWithoutResult = await db
Expand Down
2 changes: 1 addition & 1 deletion src/pages/user/[id]/subsessions/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const subsessionRaceResults = await db
.where(
and(
eq(SubsessionRaceResults.cust_id, Number(id)),
sql`${SubsessionRaceResults.simsession_name} IN ${["RACE", "FEATURE"]}`
sql`${SubsessionRaceResults.simsession_name} IN ${["RACE", "FEATURE", "N/A"]}`
)
);
const subsessionsWithoutResult = await db
Expand Down

0 comments on commit b2dad1c

Please sign in to comment.