Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
chore(infra): cite #488 by number alone in comments
Yudhi Armyndharis395058857772
diff --git a/src/modules/infra/infra-data.controller.spec.ts b/src/modules/infra/infra-data.controller.spec.tsindex 54babbc14..bb3d1242a 100644--- a/src/modules/infra/infra-data.controller.spec.ts+++ b/src/modules/infra/infra-data.controller.spec.ts@@ -1320,7 +1320,7 @@ describe('InfraDataController.importData round-trips export-data (no silent messexpect(await ds.getRepository(Session).findOneBy({ id: 's2' })).toBeNull();});- it('refuses an empty/garbage backup — does not wipe existing data (#488 review must-fix)', async () => {+ it('refuses an empty/garbage backup — does not wipe existing data (#488)', async () => {await seedSession('s1');await ds.getRepository(Message).save(ds.getRepository(Message).create({diff --git a/src/modules/infra/infra-data.service.ts b/src/modules/infra/infra-data.service.tsindex 3ce39efa3..537d147ed 100644--- a/src/modules/infra/infra-data.service.ts+++ b/src/modules/infra/infra-data.service.ts@@ -969,7 +969,7 @@ export class InfraDataService {}// A wrong/empty/garbage backup file restores zero rows but the DELETE already ran — committing- // would silently WIPE the database and report success. Refuse it and roll back instead. (#488 review)+ // would silently WIPE the database and report success. Refuse it and roll back instead. (#488)const totalRestored = Object.values(counts).reduce((sum, n) => sum + n, 0);if (totalRestored === 0) {await queryRunner.rollbackTransaction();diff --git a/src/modules/infra/infra-status.controller.ts b/src/modules/infra/infra-status.controller.tsindex 1e564bbf1..22c11f308 100644--- a/src/modules/infra/infra-status.controller.ts+++ b/src/modules/infra/infra-status.controller.ts@@ -163,7 +163,7 @@ export class InfraStatusController {if (engineType === 'whatsapp-web.js') {// Kick the auto-resolve but DON'T await it — /infra/status is polled frequently and the registry// fetch can take up to 5s on a firewalled host. Read whatever's cached now (null until the first- // success); a later poll reflects the resolved build. (#488 review)+ // success); a later poll reflects the resolved build. (#488)if (getEffectiveWebVersionInfo().source === 'auto') {void resolveCurrentWebVersion().catch(() => undefined);}