AI Implementation feature(910): Scoreboard: Ranking, Matrix, Event Log and Score Graph 1.00 (#53)
This commit was merged in pull request #53.
This commit is contained in:
@@ -373,6 +373,8 @@ export class ChallengesService {
|
||||
|
||||
this.publishSolveEvent({
|
||||
challengeId,
|
||||
challengeName: challenge.name,
|
||||
categoryAbbreviation: challenge.abbreviation ?? '',
|
||||
userId: currentUserId,
|
||||
username: solvers.find((s) => s.userId === currentUserId)?.username ?? '',
|
||||
awardedPoints,
|
||||
@@ -405,6 +407,8 @@ export class ChallengesService {
|
||||
|
||||
private publishSolveEvent(input: {
|
||||
challengeId: string;
|
||||
challengeName: string;
|
||||
categoryAbbreviation: string;
|
||||
userId: string;
|
||||
username: string;
|
||||
awardedPoints: number;
|
||||
@@ -422,6 +426,8 @@ export class ChallengesService {
|
||||
this.hub.emitScoreboard({
|
||||
topic: 'solve',
|
||||
challengeId: input.challengeId,
|
||||
challengeName: input.challengeName,
|
||||
categoryAbbreviation: input.categoryAbbreviation,
|
||||
userId: input.userId,
|
||||
playerId: input.userId,
|
||||
playerName: input.username,
|
||||
|
||||
Reference in New Issue
Block a user