Skip to content

Commit 925becb

Browse files
committed
fix: #87 get tenant_id from session storage
1 parent b760c32 commit 925becb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import { Observable } from 'rxjs';
88
providedIn: 'root',
99
})
1010
export class CustomerService {
11-
baseUrl = `https://private-8c3d21-ts32.apiary-mock.com/customers`;
11+
baseUrl = `${environment.timeTrackerApiUrl}/customers`;
1212

1313
constructor(private http: HttpClient) {}
1414

1515
createCustomer(customerData): Observable<any> {
1616
const body = {
1717
...customerData,
18-
tenant_id: '4225ab1e-1033-4a5f-8650-0dd4950f38c8',
18+
tenant_id: sessionStorage.getItem('tenant_id'),
1919
};
2020
return this.http.post(this.baseUrl, body);
2121
}

0 commit comments

Comments
 (0)