@rayondigital/nest-dapr 0.9.28 → 0.9.29

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.
@@ -136,7 +136,10 @@ let DaprLoader = DaprLoader_1 = class DaprLoader {
136
136
  this.logger.log(`Subscribing to Dapr: ${name}, Topic: ${topicName}${route ? ' on route ' + route : ''}`);
137
137
  yield this.daprServer.pubsub.subscribe(name, topicName, (data) => __awaiter(this, void 0, void 0, function* () {
138
138
  try {
139
- yield instance[methodKey].call(instance, data);
139
+ const result = yield instance[methodKey].call(instance, data);
140
+ if (result && result in dapr_1.DaprPubSubStatusEnum) {
141
+ return result;
142
+ }
140
143
  return dapr_1.DaprPubSubStatusEnum.SUCCESS;
141
144
  }
142
145
  catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rayondigital/nest-dapr",
3
- "version": "0.9.28",
3
+ "version": "0.9.29",
4
4
  "description": "Develop NestJs microservices using Dapr pubsub, actors and other bindings",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",