This commit is contained in:
NAME
2026-05-13 12:05:55 +00:00
parent 31129e23f6
commit 702a0d1ab5
2 changed files with 6 additions and 8 deletions
-1
View File
@@ -28,7 +28,6 @@ async function bootstrap() {
`)
);
await app.get(SqsPosterWorker).start();
}
+5 -6
View File
@@ -25,13 +25,12 @@ export class SqsPosterWorker {
await this.notifyService.sendMessageToTele(`🚀 Worker started for ${await this.sqs.getQueueName()}`)
//check cookie
if (!await this.xCacheService.isXCookiesAlive()) {
this.xRouterService.verifyCookie().catch((err) => {
console.error(`SqsPosterWorker_verifyCookie`);
console.error(err);
});
this.xCacheService.isXCookiesAlive().then(isLive => {
this.logger.log(`cache cookie is ${isLive ? 'LIVE' : 'DIE'}`);
if (!isLive) {
this.xRouterService.verifyCookie();
}
});
let ReceiptHandle = '';
while (true) {