From e8c0e0d31296e3a9d66c899c07f85dab0ce9598e Mon Sep 17 00:00:00 2001 From: Ly Tuan Kiet Date: Sun, 3 Nov 2024 18:08:04 +0700 Subject: [PATCH] fix invalidate sessionid --- src/Graphql/graphql.module.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Graphql/graphql.module.ts b/src/Graphql/graphql.module.ts index 87d235f..62fa421 100644 --- a/src/Graphql/graphql.module.ts +++ b/src/Graphql/graphql.module.ts @@ -117,7 +117,10 @@ import { isSubscription } from 'rxjs/internal/Subscription' req, me: req ? await graphqlService.acquireContext(req) : null, pubSub: pubsub, - invalidateCache: () => Promise.resolve(), + invalidateCache: () => + graphqlService.invalidateCache( + req?.headers['x-session-id'] as string, + ), }, } },