Modificação na ordem de carregamento do cache
parent
522790901d
commit
cdd07140a9
|
@ -26,6 +26,8 @@ export const StartAllWhatsAppsSessions = async (): Promise<void> => {
|
|||
|
||||
console.log('cacheSize: ', cacheLength)
|
||||
|
||||
await loadSchedulesCache()
|
||||
|
||||
if (cacheLength == 0) {
|
||||
console.log('Loading from cache...')
|
||||
await flushCache()
|
||||
|
@ -34,7 +36,7 @@ export const StartAllWhatsAppsSessions = async (): Promise<void> => {
|
|||
}
|
||||
|
||||
// await loadWhatsappCache()
|
||||
await loadSchedulesCache()
|
||||
|
||||
|
||||
createSessionDir()
|
||||
delRestoreControllFile()
|
||||
|
|
Loading…
Reference in New Issue