100 |
101 | /**
102 | * Lists services in a given DC
103 | */
104 | services(...args) {
105 | return this.service.list(...args);
^
TypeError: undefined is not an object (evaluating 'this.service.list')
at services (./node_modules/consul/lib/catalog.js:105:17)
at _run (./node_modules/consul/lib/watch.js:146:8)
I am trying to watch service changes like this but get an error. The code works with
consul.kv.get
as used in the test.Any idea what I'm doing wrong here?