fix: update Salesforce event configuration to enable Order CDC by default

- Changed the default value of SF_EVENTS_ENABLED from "false" to "true" in the OrderCdcSubscriber class to ensure that Order CDC events are enabled by default upon initialization.
This commit is contained in:
barsa 2026-03-03 13:10:38 +09:00
parent 99761b21dd
commit 790e3e65e3

View File

@ -63,7 +63,7 @@ export class OrderCdcSubscriber implements OnModuleInit {
) {} ) {}
async onModuleInit(): Promise<void> { async onModuleInit(): Promise<void> {
const enabled = this.config.get("SF_EVENTS_ENABLED", "false") === "true"; const enabled = this.config.get("SF_EVENTS_ENABLED", "true") === "true";
if (!enabled) { if (!enabled) {
this.logger.debug("Order CDC disabled (SF_EVENTS_ENABLED=false)"); this.logger.debug("Order CDC disabled (SF_EVENTS_ENABLED=false)");
return; return;