mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
@@ -1,10 +1,10 @@
|
|||||||
import { caching, Store } from 'cache-manager'
|
import { caching, Storage } from 'cache-manager'
|
||||||
import { proto } from '../../WAProto'
|
import { proto } from '../../WAProto'
|
||||||
import { AuthenticationCreds } from '../Types'
|
import { AuthenticationCreds } from '../Types'
|
||||||
import { BufferJSON, initAuthCreds } from '../Utils'
|
import { BufferJSON, initAuthCreds } from '../Utils'
|
||||||
import logger from '../Utils/logger'
|
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 defaultKey = (file: string): string => `${sessionKey}:${file}`
|
||||||
|
|
||||||
const databaseConn = await caching(store)
|
const databaseConn = await caching(store)
|
||||||
@@ -97,4 +97,4 @@ const makeCacheManagerAuthState = async(store: Store, sessionKey: string) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default makeCacheManagerAuthState
|
export default makeCacheManagerAuthState
|
||||||
|
|||||||
Reference in New Issue
Block a user