(challengeId: string)
| 331 | } |
| 332 | |
| 333 | async getHintsByChallenge(challengeId: string): Promise<Hint[]> { |
| 334 | return Array.from(this.hints.values()) |
| 335 | .filter(hint => hint.challengeId === challengeId) |
| 336 | .sort((a, b) => a.order - b.order); |
| 337 | } |
| 338 | |
| 339 | async createHint(insertHint: InsertHint): Promise<Hint> { |
| 340 | const id = randomUUID(); |