fix(#681): Fixed import (credit to #611)

This commit is contained in:
Rajeh Taher
2024-03-19 11:53:29 +02:00
committed by GitHub
parent 8ae0025616
commit c218f3746e

View File

@@ -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
export default makeCacheManagerAuthState