From c76257f70aa1ea6d6eadc57846ec7062966a445a Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Mon, 29 Dec 2025 12:56:21 +0330 Subject: [PATCH] fix bug in contacts --- src/modules/dmenu/providers/contact.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);