anear-js-api 0.3.20 → 0.3.21
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/models/AnearEvent.js +1 -0
- package/package.json +1 -1
package/lib/models/AnearEvent.js
CHANGED
|
@@ -252,6 +252,7 @@ class AnearEvent extends JsonApiResource {
|
|
|
252
252
|
try {
|
|
253
253
|
const responseAttributes = await this.messaging.api.transitionEvent(this.id, eventName)
|
|
254
254
|
const newState = responseAttributes.state
|
|
255
|
+
this.attributes.state = newState
|
|
255
256
|
await this.messaging.publishEventTransitionMessage(this, newState)
|
|
256
257
|
} catch(err) {
|
|
257
258
|
logger.error(`AnearEvent: transitionEvent error: ${err}`)
|