anear-js-api 0.3.5 → 0.3.6

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.
@@ -252,7 +252,7 @@ class AnearEvent extends JsonApiResource {
252
252
  logger.debug(`AnearEvent: transitionEvent(${eventName})`)
253
253
 
254
254
  try {
255
- const responseAttributes = await this.messaging.api.transitionEvent(this, eventName)
255
+ const responseAttributes = await this.messaging.api.transitionEvent(this.id, eventName)
256
256
  const newState = responseAttributes.state
257
257
  await this.messaging.publishEventTransitionMessage(this, newState)
258
258
  } catch(err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anear-js-api",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Javascript Developer API for Anear Apps",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {