diff --git a/project/src/controllers/BotController.ts b/project/src/controllers/BotController.ts index b28406df..593ac00c 100644 --- a/project/src/controllers/BotController.ts +++ b/project/src/controllers/BotController.ts @@ -201,7 +201,7 @@ export class BotController } } - cacheKey = `${botRole}${details.botDifficulty}`; + cacheKey = `${details.role}${details.botDifficulty}`; // Check for bot in cache, add if not if (!this.botGenerationCacheService.cacheHasBotOfRole(cacheKey))