Fix botcache not returning correct bot breaking halloween event.
This commit is contained in:
parent
22976d4ca3
commit
9bc08fbd26
@ -294,7 +294,9 @@ export class BotController
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Construct cache key
|
// Construct cache key
|
||||||
const cacheKey = `${botGenerationDetails.role}${botGenerationDetails.botDifficulty}`;
|
const cacheKey = `${
|
||||||
|
botGenerationDetails.eventRole ?? botGenerationDetails.role
|
||||||
|
}${botGenerationDetails.botDifficulty}`;
|
||||||
|
|
||||||
// Check cache for bot using above key
|
// Check cache for bot using above key
|
||||||
if (!this.botGenerationCacheService.cacheHasBotOfRole(cacheKey))
|
if (!this.botGenerationCacheService.cacheHasBotOfRole(cacheKey))
|
||||||
|
Loading…
Reference in New Issue
Block a user