diff --git a/packages/core/src/commands/command.service.ts b/packages/core/src/commands/command.service.ts index cc7b1be..8825c84 100644 --- a/packages/core/src/commands/command.service.ts +++ b/packages/core/src/commands/command.service.ts @@ -60,7 +60,7 @@ export class CommandService implements OnModuleInit { } onModuleInit() { - if (!this.options.disableDefaulHandler) { + if (!this.options.disableDefaultHandler) { this[DATA_SYNC_HANDLER] = [this.dataSyncDdsHandler] } if (this.options.dataSyncHandlers?.length) { diff --git a/packages/core/src/interfaces/command-module-options.interface.ts b/packages/core/src/interfaces/command-module-options.interface.ts index 8c08cf8..7058edc 100644 --- a/packages/core/src/interfaces/command-module-options.interface.ts +++ b/packages/core/src/interfaces/command-module-options.interface.ts @@ -6,5 +6,5 @@ export interface CommandModuleOptions { tableName: string skipError?: boolean // true will skip previous command error dataSyncHandlers?: Type[] - disableDefaulHandler?: boolean // true will reset defaul data sync handlers + disableDefaultHandler?: boolean // true will reset default data sync handlers }