nrkno / sofie-emberplus-connection

Ember+ Connection: A Part of the Sofie TV Studio Automation System
https://github.com/nrkno/Sofie-TV-automation/
MIT License
20 stars 15 forks source link

How to format "node" in getDirectory(node) function? #31

Closed dewiweb closed 1 year ago

dewiweb commented 1 year ago

When I try to specify a node path for getDirectory function like this:

let node_directory = await eGet.getDirectory("980030.980031.980032")

, I've got this error:

 Unhandled rejection TypeError: Cannot use 'in' operator to search for 'number' in 980030.980031.980032
    at EmberClient.getDirectory (/home/dewi/Github/MCxOSCnext/node_modules/emberplus-connection/dist/Ember/Client/index.js:107:24)

So what's the good format for node in getDirectory(node)?