Skip to content

Commit c126a79

Browse files
Update for loop in cache decorator
Co-authored-by: Luis Mastrangelo <[email protected]> Signed-off-by: konstantinabl <[email protected]>
1 parent 2881811 commit c126a79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/relay/src/lib/decorators/cache.decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const shouldSkipCachingForNamedParams = (args: unknown[], params: CacheNamedPara
117117
*/
118118
const generateCacheKey = (methodName: string, args: unknown[]) => {
119119
let cacheKey: string = methodName;
120-
for (const [, value] of Object.entries(args)) {
120+
for (const value of args) {
121121
if (value?.constructor?.name != 'RequestDetails') {
122122
if (value && typeof value === 'object') {
123123
cacheKey += `_${JSON.stringify(value)}`;

0 commit comments

Comments
 (0)