Skip to content

Commit 9b3ba1a

Browse files
committed
fix(arc-saas): changes in command name
changes in command name GH-64
1 parent 4ac6880 commit 9b3ba1a

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

projects/saas-ui/src/app/main/commands/get-features-for-plan.command.ts renamed to projects/saas-ui/src/app/main/commands/get-features.command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {IApiService, IAdapter, GetAPICommand} from '@project-lib/core/api';
22
import {IAnyObject} from '@project-lib/core/i-any-object';
33
import {Features} from '../../shared/models/feature.model';
44

5-
export class GetFeaturesForPlanCommand<T> extends GetAPICommand<Features[]> {
5+
export class GetFeaturesCommand<T> extends GetAPICommand<Features[]> {
66
constructor(
77
apiService: IApiService,
88
adapter: IAdapter<Features[]>,

projects/saas-ui/src/app/main/commands/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ export * from './get-total-billing-plan.command';
1818
export * from './add-features-for-plan.command';
1919
export * from './edit-features-by-planid.command';
2020
export * from './get-feature-by-planid.command';
21-
export * from './get-features-for-plan.command';
21+
export * from './get-features.command';

projects/saas-ui/src/app/shared/services/feature-list-service.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {GetPlanAdapter} from '../../on-boarding/adapters';
1212
import {GetPlanCommand} from '../../on-boarding/commands';
1313
import {IAnyObject} from '@project-lib/core/i-any-object';
1414
import {APP_CONFIG} from '@project-lib/app-config';
15-
import {GetFeaturesForPlanCommand} from '../../main/commands/get-features-for-plan.command';
15+
import {GetFeaturesCommand} from '../../main/commands/get-features.command';
1616
import {Features} from '../models/feature.model';
1717
import {Observable, catchError, throwError} from 'rxjs';
1818
import {AddFeaturesForPlanCommand} from '../../main/commands/add-features-for-plan.command';
@@ -43,12 +43,11 @@ export class FeatureListService {
4343
) {}
4444

4545
getFeatures(): Observable<Features[]> {
46-
const command: GetFeaturesForPlanCommand<Features[]> =
47-
new GetFeaturesForPlanCommand(
48-
this.apiService,
49-
this.anyAdapter,
50-
this.appConfig,
51-
);
46+
const command: GetFeaturesCommand<Features[]> = new GetFeaturesCommand(
47+
this.apiService,
48+
this.anyAdapter,
49+
this.appConfig,
50+
);
5251
return command.execute();
5352
}
5453

0 commit comments

Comments
 (0)