"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurrentTenant = exports.CurrentTenantId = void 0;
const common_1 = require("@nestjs/common");
exports.CurrentTenantId = (0, common_1.createParamDecorator)((_data, ctx) => {
    const request = ctx.switchToHttp().getRequest();
    return request.tenantId ?? null;
});
exports.CurrentTenant = exports.CurrentTenantId;
//# sourceMappingURL=current-tenant.decorator.js.map