@peopl-health/nexus 3.9.7 → 3.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js
CHANGED
|
@@ -179,7 +179,9 @@ class Nexus {
|
|
|
179
179
|
throw new Error('Nexus not initialized. Call initialize() first.');
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
const
|
|
182
|
+
const provider = this.messaging.getProvider();
|
|
183
|
+
|
|
184
|
+
const normalizedMessage = await provider.normalize(rawMessage);
|
|
183
185
|
const messageData = await this.messageParser.parseMessage(normalizedMessage);
|
|
184
186
|
|
|
185
187
|
return await this.messaging.processIncomingMessage(messageData);
|