diff --git a/src/modules/dmenu/providers/contact.service.ts b/src/modules/dmenu/providers/contact.service.ts index 1af1fa3..5278767 100644 --- a/src/modules/dmenu/providers/contact.service.ts +++ b/src/modules/dmenu/providers/contact.service.ts @@ -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);