@indra.ai/deva 1.1.94 → 1.1.95
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/index.js +1 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -780,7 +780,6 @@ class Deva {
|
|
|
780
780
|
this.talk(config.events.question, this.copy(packet)); // global question event make sure to copy data.
|
|
781
781
|
|
|
782
782
|
if (isAsk) { // isAsk check if the question isAsk and talk
|
|
783
|
-
this.state('ask');
|
|
784
783
|
// if: isAsk wait for the once event which is key'd to the packet ID for specified responses
|
|
785
784
|
this.talk(`${key}:ask`, packet);
|
|
786
785
|
this.once(`${key}:ask:${packet.id}`, answer => {
|
|
@@ -789,7 +788,7 @@ class Deva {
|
|
|
789
788
|
});
|
|
790
789
|
}
|
|
791
790
|
else { // else: answer tue question locally
|
|
792
|
-
this.action('
|
|
791
|
+
this.action('question_answer');
|
|
793
792
|
return this.answer(packet, resolve, reject);
|
|
794
793
|
}
|
|
795
794
|
}
|