Possible requirement for an asynchronous collection.get()
axit-joost opened this issue · 1 comments
axit-joost commented
I'm working on a project that basically does this:
const devices = require('../lib/resources').devices;
const prober = require('../lib/prober');
const device = devices.get('7fd590de-5726-436d-8c84-95e4738a9742');
prober.probeDevice(device);
When running this script in node, the device passed to probeDevice is still undefined.
when running these commands from the node REPL, it works fine.
ronkorving commented
Solved with you offline, not related to express-rested :) 👍