@nestjs/cqrs 9.0.0 → 9.0.1

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.
@@ -37,7 +37,7 @@ let CommandBus = class CommandBus extends observable_bus_1.ObservableBus {
37
37
  if (!handler) {
38
38
  throw new command_not_found_exception_1.CommandHandlerNotFoundException(commandId);
39
39
  }
40
- this.subject$.next(command);
40
+ this._publisher.publish(command);
41
41
  return handler.execute(command);
42
42
  }
43
43
  bind(handler, id) {
package/dist/query-bus.js CHANGED
@@ -47,7 +47,7 @@ let QueryBus = class QueryBus extends observable_bus_1.ObservableBus {
47
47
  if (!handler) {
48
48
  throw new exceptions_1.QueryHandlerNotFoundException(queryId);
49
49
  }
50
- this.subject$.next(query);
50
+ this._publisher.publish(query);
51
51
  const result = yield handler.execute(query);
52
52
  return result;
53
53
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/cqrs",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "A lightweight CQRS module for Nest framework (node.js)",
5
5
  "license": "MIT",
6
6
  "url": "https://github.com/nestjs/cqrs#readme",