chore: add create customer and update customer for admin

This commit is contained in:
mahyargdz
2025-03-06 09:35:59 +03:30
parent c1f21e75f2
commit b92a65c22c
20 changed files with 674 additions and 399 deletions
@@ -7,18 +7,18 @@ import { InvoicesService } from "../../invoices/providers/invoices.service";
import { NotificationsService } from "../../notifications/providers/notifications.service";
import { SubscriptionsService } from "../../subscriptions/providers/subscriptions.service";
import { TicketsService } from "../../tickets/providers/tickets.service";
import { UsersService } from "../../users/providers/users.service";
import { CustomersService } from "../../users/providers/customers.service";
@Injectable()
export class DashboardService {
constructor(
private readonly danakServicesService: DanakServicesService,
private readonly usersService: UsersService,
private readonly invoicesService: InvoicesService,
private readonly ticketsService: TicketsService,
private readonly adsService: AdsService,
private readonly subscriptionsService: SubscriptionsService,
private readonly notificationsService: NotificationsService,
private readonly customersService: CustomersService,
// private readonly announcementService: AnnouncementService,
) {}
@@ -76,7 +76,7 @@ export class DashboardService {
//************************************ */
private async getCustomersCount() {
const customersCount = await this.usersService.getCustomersCount();
const customersCount = await this.customersService.getCustomersCount();
return customersCount;
}