fix in command handler based commands for errors.

This commit is contained in:
David Lebee 2021-08-19 09:29:24 -04:00
parent 4a7efb1d93
commit 58306aee76
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@poweredsoft/ngx-data",
"version": "0.0.21",
"version": "0.0.22",
"peerDependencies": {
"@angular/common": "^8.2.4",
"@angular/core": "^8.2.4",

View File

@ -91,7 +91,7 @@ export abstract class BaseHttpDataSourceOptionsBuilder<TModel, TKey> {
public addCommandByCallback<TCommand, TCommandResult>(name: string, commandHandler: (command: TCommand) => Observable<TCommandResult>, resolveCommandModel?: (event: IResolveCommandModelEvent<TModel>) => Observable<TCommand & any>) {
const handleWrapper = command => {
return commandHandler(command).pipe(catchError(err => this._handleErrorPipe.bind(this)));
return commandHandler(command).pipe(catchError(this._handleErrorPipe.bind(this)));
};
this._commands[name] = <IDataSourceCommandAdapterOptions<TModel>>{