fix: update version tags to v28 and temporarily disable cache for predictions

This commit is contained in:
2026-04-24 00:11:00 +03:00
parent 634204acf0
commit 1f26a5bf2f
10 changed files with 86 additions and 56 deletions
@@ -96,11 +96,11 @@ export class PredictionsController {
async getPrediction(
@Param("matchId") matchId: string,
): Promise<MatchPredictionDto> {
// Check cache first
const cached = await this.predictionsService.getCachedPrediction(matchId);
if (cached) {
return cached;
}
// Check cache first - DISABLED per user request to always fetch from scratch
// const cached = await this.predictionsService.getCachedPrediction(matchId);
// if (cached) {
// return cached;
// }
// Get from AI Engine
const prediction = await this.predictionsService.getPredictionById(matchId);
@@ -109,9 +109,6 @@ export class PredictionsController {
throw new NotFoundException(`Match not found: ${matchId}`);
}
// Cache the result
await this.predictionsService.cachePrediction(matchId, prediction);
return prediction;
}