From 4e1a0ccb95d329697eb262cd98b19314ce4d4634 Mon Sep 17 00:00:00 2001 From: sanny-io Date: Tue, 3 Feb 2026 16:22:05 +0000 Subject: [PATCH 1/2] fix: id field not being mapped --- src/plugin.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/plugin.ts b/src/plugin.ts index 53481eb..79efffc 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -59,11 +59,7 @@ export function defineCachePlugin(pluginOptions: CachePluginOptions) { onQuery: async ({ args, model, operation, proceed, client }) => { if (args && 'cache' in args) { const authId = client.$auth - ? Object.keys(client.$auth) - .filter(key => - client.$schema.models[client.$schema.authType!]!.idFields.includes(key), - ) - .join('_') + ? client.$schema.models[client.$schema.authType!]!.idFields.map(key => client.$auth![key]) : undefined const json = stableHash({ From e1b6bd38d41b4e7d58996e6b15bd29934cdd3231 Mon Sep 17 00:00:00 2001 From: sanny-io Date: Tue, 3 Feb 2026 16:22:36 +0000 Subject: [PATCH 2/2] chore: bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eb967e7..2e43f81 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@visualbravo/zenstack-cache", - "version": "1.0.5", + "version": "1.0.6", "description": "Reduce response times and database load with query-level caching integrated with the ZenStack ORM.", "keywords": [ "accelerate",