Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(session): attach the heldByOtherNodes comment to its method
Yudhi Armyndharis6567ae43a41d
diff --git a/src/modules/session/session-ownership.service.ts b/src/modules/session/session-ownership.service.tsindex aac450d81..913276da8 100644--- a/src/modules/session/session-ownership.service.ts+++ b/src/modules/session/session-ownership.service.ts@@ -396,12 +396,6 @@ export class SessionOwnershipService {.getMany();}- /**- * Session ids another node currently holds on a live lease.- *- * For operations that can only act on this process's own engines and would otherwise report- * success over work they never touched.- *//*** Whether ONE session is held by another node on a live lease.*@@ -430,6 +424,12 @@ export class SessionOwnershipService {);}+ /**+ * Session ids another node currently holds on a live lease.+ *+ * For operations that can only act on this process's own engines and would otherwise report+ * success over work they never touched.+ */async heldByOtherNodes(now = new Date()): Promise<string[]> {const rows = await this.sessions.createQueryBuilder('session')