chore: update-cache-manager-dependency (#996)

* chore: update-cache-manager-dependency

* fix: Linting

---------

Co-authored-by: Eduardo <eduandy@gmail.com>
This commit is contained in:
wduandy
2024-09-22 08:43:17 -03:00
committed by GitHub
parent 71082bf1b3
commit 9e4e211751
3 changed files with 26 additions and 15 deletions

View File

@@ -1,10 +1,10 @@
import { caching, Storage } from 'cache-manager'
import { caching, Store } 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: Storage, sessionKey: string) => {
const makeCacheManagerAuthState = async(store: Store, sessionKey: string) => {
const defaultKey = (file: string): string => `${sessionKey}:${file}`
const databaseConn = await caching(store)