@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.
- package/dist/dapr.loader.js +4 -1
- package/package.json +1 -1
package/dist/dapr.loader.js
CHANGED
|
@@ -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