The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Remove the `as any` casts in cache-storage.service.ts (#28382)
twenty-pr-author[bot]d12ac7a67f47
diff --git a/packages/twenty-server/src/engine/core-modules/cache-storage/services/cache-storage.service.ts b/packages/twenty-server/src/engine/core-modules/cache-storage/services/cache-storage.service.tsindex 4b1a61b4694..cbd52bdb396 100644--- a/packages/twenty-server/src/engine/core-modules/cache-storage/services/cache-storage.service.ts+++ b/packages/twenty-server/src/engine/core-modules/cache-storage/services/cache-storage.service.ts@@ -542,8 +542,9 @@ end`;}private isRedisCache(cache: Cache): cache is RedisCache {- // oxlint-disable-next-line typescript/no-explicit-any- return (cache.store as any)?.name === 'redis';+ const store: object | null | undefined = cache.store;++ return isDefined(store) && 'name' in store && store.name === 'redis';}private getKey(key: string) {