Modificação na ordem de carregamento do cache

pull/21/head
adriano 2023-01-01 22:25:34 -03:00
parent 522790901d
commit cdd07140a9
2 changed files with 4 additions and 2 deletions

View File

@ -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()