|
|
@ -70,7 +70,7 @@ export class GroupSyncService {
|
|
|
|
|
|
|
|
|
|
|
|
if (!shouldSync && process.env.NODE_ENV !== 'test') {
|
|
|
|
if (!shouldSync && process.env.NODE_ENV !== 'test') {
|
|
|
|
const nextSyncIn = this.SYNC_INTERVAL_MS - timeSinceLastSync;
|
|
|
|
const nextSyncIn = this.SYNC_INTERVAL_MS - timeSinceLastSync;
|
|
|
|
console.debug(`Next sync available in ${Math.round(nextSyncIn/1000)} seconds`);
|
|
|
|
console.debug(`Next sync available in ${Math.round(nextSyncIn / 1000)} seconds`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return shouldSync;
|
|
|
|
return shouldSync;
|
|
|
@ -89,7 +89,7 @@ export class GroupSyncService {
|
|
|
|
headers: {
|
|
|
|
headers: {
|
|
|
|
apikey: env.EVOLUTION_API_KEY,
|
|
|
|
apikey: env.EVOLUTION_API_KEY,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
timeout: 120000 // 120 second timeout
|
|
|
|
timeout: 320000 // 120 second timeout
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
if (!response.ok) {
|
|
|
|
if (!response.ok) {
|
|
|
|