@indra.ai/deva 1.5.9 → 1.5.10
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 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -871,7 +871,7 @@ class Deva {
|
|
|
871
871
|
// check for agent on finish function in agent
|
|
872
872
|
const hasOnFinish = this.onFinish && typeof this.onFinish === 'function';
|
|
873
873
|
// return the provided resolve function or a promise resolve.
|
|
874
|
-
this.state('finish', id); // set the finish state
|
|
874
|
+
this.state('finish', packet.id); // set the finish state
|
|
875
875
|
return hasOnFinish ? this.onFinish(packet, resolve) : this.complete(packet, resolve);
|
|
876
876
|
}
|
|
877
877
|
|