|
|
@@ -1,4 +1,4 @@
|
|
|
-import { Module, OnModuleInit } from '@nestjs/common';
|
|
|
+import { Module } from '@nestjs/common';
|
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
|
|
|
import { getConfig } from '../config/config-helpers';
|
|
|
@@ -87,22 +87,4 @@ const exportedProviders = [
|
|
|
],
|
|
|
exports: exportedProviders,
|
|
|
})
|
|
|
-export class ServiceModule implements OnModuleInit {
|
|
|
- constructor(
|
|
|
- private channelService: ChannelService,
|
|
|
- private roleService: RoleService,
|
|
|
- private administratorService: AdministratorService,
|
|
|
- private taxRateService: TaxRateService,
|
|
|
- private shippingMethodService: ShippingMethodService,
|
|
|
- private paymentMethodService: PaymentMethodService,
|
|
|
- ) {}
|
|
|
-
|
|
|
- async onModuleInit() {
|
|
|
- await this.channelService.initChannels();
|
|
|
- await this.roleService.initRoles();
|
|
|
- await this.administratorService.initAdministrators();
|
|
|
- await this.taxRateService.initTaxRates();
|
|
|
- await this.shippingMethodService.initShippingMethods();
|
|
|
- await this.paymentMethodService.initPaymentMethods();
|
|
|
- }
|
|
|
-}
|
|
|
+export class ServiceModule {}
|