Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(integration): attach the rebindSession doc comment to its method

Yudhi Armyndharis2af83321dc68
diff --git a/src/modules/integration/conversation-mapping.service.ts b/src/modules/integration/conversation-mapping.service.ts
index ca2c4e4f3..1b51ac79f 100644
--- a/src/modules/integration/conversation-mapping.service.ts
+++ b/src/modules/integration/conversation-mapping.service.ts
@@ -165,6 +165,11 @@ export class ConversationMappingService implements PluginConversationMappingPort
await this.repo.update({ sessionId, pluginId, instanceId, chatId }, { handoverState: state });
}
+ /** Remove a mapping row by id — the supersede half of the stale-session repair path. */
+ async delete(id: string): Promise<void> {
+ await this.repo.delete({ id });
+ }
+
/**
* Rebind a mapping whose session was deleted (and re-paired under a new id) onto the caller's
* current session, so the stale row stops failing every reverse-key resolution. If the current
@@ -173,11 +178,6 @@ export class ConversationMappingService implements PluginConversationMappingPort
* row already owns its reverse key). That existing row is the fresher binding for the same chat,
* so the stale row is superseded by deleting it instead.
*/
- /** Remove a mapping row by id — the supersede half of the stale-session repair path. */
- async delete(id: string): Promise<void> {
- await this.repo.delete({ id });
- }
-
async rebindSession(id: string, sessionId: string): Promise<void> {
try {
await this.repo.update({ id }, { sessionId });