Fix botcache not returning correct bot breaking halloween event.

This commit is contained in:
Kaeno 2024-03-14 22:41:36 +00:00
parent 22976d4ca3
commit 9bc08fbd26

View File

@ -294,7 +294,9 @@ export class BotController
}
// Construct cache key
const cacheKey = `${botGenerationDetails.role}${botGenerationDetails.botDifficulty}`;
const cacheKey = `${
botGenerationDetails.eventRole ?? botGenerationDetails.role
}${botGenerationDetails.botDifficulty}`;
// Check cache for bot using above key
if (!this.botGenerationCacheService.cacheHasBotOfRole(cacheKey))