mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 15:17:43 -05:00
Fix tournament SP not being calculated Closes #1611
This commit is contained in:
@@ -186,7 +186,7 @@ export const action: ActionFunction = async ({ params, request }) => {
|
||||
|
||||
const season = currentSeason(
|
||||
databaseTimestampToDate(tournament.startTime),
|
||||
);
|
||||
)?.nth;
|
||||
|
||||
addSummary({
|
||||
tournamentId,
|
||||
@@ -196,16 +196,16 @@ export const action: ActionFunction = async ({ params, request }) => {
|
||||
results,
|
||||
calculateSeasonalStats: typeof season === "number",
|
||||
queryCurrentTeamRating: (identifier) =>
|
||||
queryCurrentTeamRating({ identifier, season: season!.nth }).rating,
|
||||
queryCurrentTeamRating({ identifier, season: season! }).rating,
|
||||
queryCurrentUserRating: (userId) =>
|
||||
queryCurrentUserRating({ userId, season: season!.nth }).rating,
|
||||
queryCurrentUserRating({ userId, season: season! }).rating,
|
||||
queryTeamPlayerRatingAverage: (identifier) =>
|
||||
queryTeamPlayerRatingAverage({
|
||||
identifier,
|
||||
season: season!.nth,
|
||||
season: season!,
|
||||
}),
|
||||
}),
|
||||
season: season?.nth,
|
||||
season,
|
||||
});
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user