fix bug in contacts

This commit is contained in:
2025-12-29 12:56:21 +03:30
parent 610d82e77d
commit c76257f70a
@@ -27,7 +27,7 @@ export class ContactService {
async findAll() {
try {
const { data } = await firstValueFrom(
this.httpService.get(`${this.config.baseUrl}/super-admin/contacts`, { headers: this.getHeaders() }).pipe(
this.httpService.get(`${this.config.baseUrl}/super-admin/contact`, { headers: this.getHeaders() }).pipe(
catchError((err: AxiosError) => {
this.logger.error(`Failed to fetch contacts: ${err.message}`, err.stack);
return throwError(() => err);
@@ -44,7 +44,7 @@ export class ContactService {
async findOne(id: number) {
try {
const { data } = await firstValueFrom(
this.httpService.get(`${this.config.baseUrl}/super-admin/contacts/${id}`, { headers: this.getHeaders() }).pipe(
this.httpService.get(`${this.config.baseUrl}/super-admin/contact/${id}`, { headers: this.getHeaders() }).pipe(
catchError((err: AxiosError) => {
this.logger.error(`Failed to fetch contact: ${err.message}`, err.stack);
return throwError(() => err);