chore: add create customer and update customer for admin
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user