1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.SubscribeMessage = void 0;
|
4 | const constants_1 = require("../constants");
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | const SubscribeMessage = (message) => {
|
11 | return (target, key, descriptor) => {
|
12 | Reflect.defineMetadata(constants_1.MESSAGE_MAPPING_METADATA, true, descriptor.value);
|
13 | Reflect.defineMetadata(constants_1.MESSAGE_METADATA, message, descriptor.value);
|
14 | return descriptor;
|
15 | };
|
16 | };
|
17 | exports.SubscribeMessage = SubscribeMessage;
|