template-saas/apps/backend/node_modules/@nestjs/bullmq/dist/bull.registrar.js
rckrdmrd 50a821a415
Some checks failed
CI / Backend CI (push) Has been cancelled
CI / Frontend CI (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / CI Summary (push) Has been cancelled
[SIMCO-V38] feat: Actualizar a SIMCO v3.8.0
- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8
- Actualizaciones de configuracion

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 08:53:08 -06:00

42 lines
1.3 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BullRegistrar = void 0;
const tslib_1 = require("tslib");
const common_1 = require("@nestjs/common");
const core_1 = require("@nestjs/core");
const bull_constants_1 = require("./bull.constants");
const bull_explorer_1 = require("./bull.explorer");
let BullRegistrar = class BullRegistrar {
constructor(moduleRef, bullExplorer) {
this.moduleRef = moduleRef;
this.bullExplorer = bullExplorer;
}
onModuleInit() {
const extraOptions = this.getModuleExtras();
if (extraOptions?.manualRegistration) {
return;
}
this.register();
}
register() {
return this.bullExplorer.register();
}
getModuleExtras() {
try {
const extrasToken = bull_constants_1.BULL_EXTRA_OPTIONS_TOKEN;
return this.moduleRef.get(extrasToken, {
strict: false,
});
}
catch {
return null;
}
}
};
exports.BullRegistrar = BullRegistrar;
exports.BullRegistrar = BullRegistrar = tslib_1.__decorate([
(0, common_1.Injectable)(),
tslib_1.__metadata("design:paramtypes", [core_1.ModuleRef,
bull_explorer_1.BullExplorer])
], BullRegistrar);