From 2a925167eb4e4a0267086ce19003b499479a9b8a Mon Sep 17 00:00:00 2001 From: Thomas Feldtkeller Date: Mon, 11 Nov 2024 14:29:49 +0100 Subject: [PATCH] BC-8398 - remove teams cache (#5335) only data that isnt subject to change should be cached for langer than usual (1 sec by default) --- apps/server/src/shared/repo/teams/teams.repo.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/server/src/shared/repo/teams/teams.repo.ts b/apps/server/src/shared/repo/teams/teams.repo.ts index f8b8f1e222a..4e10c60fe69 100644 --- a/apps/server/src/shared/repo/teams/teams.repo.ts +++ b/apps/server/src/shared/repo/teams/teams.repo.ts @@ -10,10 +10,8 @@ export class TeamsRepo extends BaseRepo { return TeamEntity; } - cacheExpiration = 60000; - async findById(id: EntityId, populate = false): Promise { - const team = await this._em.findOneOrFail(TeamEntity, { id }, { cache: this.cacheExpiration }); + const team = await this._em.findOneOrFail(TeamEntity, { id }); if (populate) { await Promise.all(