"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SolidRequestContextDecorator = void 0;
const common_1 = require("@nestjs/common");
const constants_1 = require("../constants");
const solid_request_context_dto_1 = require("../dtos/solid-request-context.dto");
exports.SolidRequestContextDecorator = (0, common_1.createParamDecorator)((data, ctx) => {
    const request = ctx.switchToHttp().getRequest();
    const activeUser = request[constants_1.REQUEST_USER_KEY];
    const solidRequestContext = new solid_request_context_dto_1.SolidRequestContextDto();
    solidRequestContext.activeUser = activeUser;
    return solidRequestContext;
});
//# sourceMappingURL=solid-request-context.decorator.js.map