Skip to content

Commit 744b37e

Browse files
authored
Merge pull request #162 from ioet/147_Display_correct_username_forze_build
fix: #147 display correct username force build
2 parents 720de09 + 22e6a99 commit 744b37e

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/app/modules/customer-management/components/projects/components/services/project.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { HttpClient } from '@angular/common/http';
33
import { Observable } from 'rxjs';
44
import { environment } from '../../../../../../../environments/environment';
55
import { Project } from '../../../../../shared/models';
6-
import { AzureAdB2CService } from '../../../../../login/services/azure.ad.b2c.service';
76

87
@Injectable({
98
providedIn: 'root',
@@ -12,7 +11,7 @@ export class ProjectService {
1211
projects: Project[] = [];
1312
url = `${environment.timeTrackerApiUrl}/projects`;
1413

15-
constructor(private http: HttpClient, private azureAdB2CService: AzureAdB2CService) {}
14+
constructor(private http: HttpClient) {}
1615

1716
getProjects(): Observable<Project[]> {
1817
return this.http.get<Project[]>(this.url);

src/app/modules/customer-management/services/customer.service.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ describe('CustomerService', () => {
4545
{ name: 'aa', description: 'bb', tenant_id: 'cc', id: '1' },
4646
{ name: 'xx', description: 'yy', tenant_id: 'zz', id: '2' },
4747
];
48-
const key = 'id';
4948
const url = `${service.baseUrl}/1`;
5049
service.deleteCustomer(customer[0].id).subscribe();
5150
const getCustomerRequest = httpMock.expectOne(url);

src/app/modules/customer-management/services/customer.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ import { HttpClient } from '@angular/common/http';
33

44
import { Observable } from 'rxjs';
55
import { environment } from './../../../../environments/environment';
6-
import { AzureAdB2CService } from 'src/app/modules/login/services/azure.ad.b2c.service';
76

87
@Injectable({
98
providedIn: 'root',
109
})
1110
export class CustomerService {
1211
baseUrl = `${environment.timeTrackerApiUrl}/customers`;
1312

14-
constructor(private http: HttpClient, private service: AzureAdB2CService) {}
13+
constructor(private http: HttpClient) {}
1514

1615
createCustomer(customerData): Observable<any> {
1716
return this.http.post(this.baseUrl, customerData);

src/app/modules/customer-management/store/customer-management.selectors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createFeatureSelector, createSelector } from '@ngrx/store';
2-
import { Customer } from 'src/app/modules/shared/models/customer.model';
2+
33

44
import { CustomerState } from './customer-management.reducers';
55
export const getCustomerState = createFeatureSelector<CustomerState>('customers');

0 commit comments

Comments
 (0)