UNPKG

@mbc-cqrs-serverless/core

Version:
17 lines 860 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GroupRoleResolver = GroupRoleResolver; const common_1 = require("@nestjs/common"); const constants_1 = require("./constants"); /** * Marks a class as the application's `IGroupRoleResolver` (exactly one per app). * Discovered at bootstrap and registered in `GroupRoleResolverRegistry`. * * Applies `@Injectable()` with default (singleton) scope. Do **not** add `@Injectable()` * on the same class — a second decorator can override scope (e.g. `REQUEST`) and break * bootstrap, which resolves one instance at application startup. */ function GroupRoleResolver() { return (0, common_1.applyDecorators)((0, common_1.SetMetadata)(constants_1.GROUP_ROLE_RESOLVER_METADATA, true), (0, common_1.Injectable)()); } //# sourceMappingURL=group-role-resolver.decorator.js.map