Skip to content

Commit 210a87d

Browse files
committed
fix: models and default configs not always working
1 parent f01cfd8 commit 210a87d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function cache(opts: CacheOptions) {
6262
// If we don't do this TypeScript complains about wrong types
6363
// Maybe there is a better way.
6464
const _args = args as Record<string, unknown>;
65-
queryCacheArgs = (_args.cache as CacheConfig) ?? {};
65+
queryCacheArgs = (_args.cache as CacheConfig) ?? undefined;
6666
delete _args.cache;
6767
}
6868

0 commit comments

Comments
 (0)