From c218f3746e18ff75d552e130ccf01f30280e1e16 Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Tue, 19 Mar 2024 11:53:29 +0200 Subject: [PATCH] fix(#681): Fixed import (credit to #611) --- src/Store/make-cache-manager-store.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Store/make-cache-manager-store.ts b/src/Store/make-cache-manager-store.ts index f870080..c93ccc0 100644 --- a/src/Store/make-cache-manager-store.ts +++ b/src/Store/make-cache-manager-store.ts @@ -1,10 +1,10 @@ -import { caching, Store } from 'cache-manager' +import { caching, Storage } from 'cache-manager' import { proto } from '../../WAProto' import { AuthenticationCreds } from '../Types' import { BufferJSON, initAuthCreds } from '../Utils' import logger from '../Utils/logger' -const makeCacheManagerAuthState = async(store: Store, sessionKey: string) => { +const makeCacheManagerAuthState = async(store: Storage, sessionKey: string) => { const defaultKey = (file: string): string => `${sessionKey}:${file}` const databaseConn = await caching(store) @@ -97,4 +97,4 @@ const makeCacheManagerAuthState = async(store: Store, sessionKey: string) => { } } -export default makeCacheManagerAuthState \ No newline at end of file +export default makeCacheManagerAuthState