@eleven-am/pondsocket 0.1.102 → 0.1.103
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/nest.js +5 -4
- package/package.json +1 -1
package/nest.js
CHANGED
|
@@ -407,12 +407,13 @@ function GetJoinParams() {
|
|
|
407
407
|
}
|
|
408
408
|
exports.GetJoinParams = GetJoinParams;
|
|
409
409
|
function GetEventPayload() {
|
|
410
|
-
return createParamDecorator((_,
|
|
411
|
-
|
|
412
|
-
|
|
410
|
+
return createParamDecorator((_, context) => {
|
|
411
|
+
var _a;
|
|
412
|
+
const payload = (_a = context.event) === null || _a === void 0 ? void 0 : _a.payload;
|
|
413
|
+
if (!payload) {
|
|
413
414
|
throw new Error('Invalid decorator usage: GetEventPayload');
|
|
414
415
|
}
|
|
415
|
-
return
|
|
416
|
+
return payload;
|
|
416
417
|
})(null);
|
|
417
418
|
}
|
|
418
419
|
exports.GetEventPayload = GetEventPayload;
|