1
+ import { MikroOrmModule } from '@mikro-orm/nestjs' ;
1
2
import { HttpModule } from '@nestjs/axios' ;
2
3
import { Module } from '@nestjs/common' ;
3
4
import { CqrsModule } from '@nestjs/cqrs' ;
5
+ import { TypeOrmModule } from '@nestjs/typeorm' ;
4
6
import { ConfigModule , environment } from '@gauzy/config' ;
5
7
import {
6
8
IntegrationEntitySettingModule ,
@@ -9,7 +11,8 @@ import {
9
11
IntegrationSettingModule ,
10
12
IntegrationTenantModule ,
11
13
UserModule ,
12
- RolePermissionModule
14
+ RolePermissionModule ,
15
+ TimerModule
13
16
} from '@gauzy/core' ;
14
17
import { ZapierService } from './zapier.service' ;
15
18
import { ZapierController } from './zapier.controller' ;
@@ -18,12 +21,9 @@ import { CommandHandlers } from '@gauzy/core';
18
21
import { QueryHandlers } from '@gauzy/core' ;
19
22
import { ZapierWebhookService } from './zapier-webhook.service' ;
20
23
import { ZapierWebhookController } from './zapier-webhook.controller' ;
24
+ import { ZapierWebhookSubscription } from './zapier-webhook-subscription.entity' ;
21
25
import { MikroOrmZapierWebhookSubscriptionRepository } from './repository/mikro-orm-zapier.repository' ;
22
26
import { TypeOrmZapierWebhookSubscriptionRepository } from './repository/type-orm-zapier.repository' ;
23
- import { ZapierWebhookSubscriptionRepository } from './repository/zapier-repository.entity' ;
24
- import { TypeOrmModule } from '@nestjs/typeorm' ;
25
- import { MikroOrmModule } from '@mikro-orm/nestjs' ;
26
- import { TimerModule } from '@gauzy/core' ;
27
27
28
28
@Module ( {
29
29
imports : [
@@ -38,18 +38,18 @@ import { TimerModule } from '@gauzy/core';
38
38
IntegrationTenantModule ,
39
39
UserModule ,
40
40
TimerModule ,
41
- TypeOrmModule . forFeature ( [ ZapierWebhookSubscriptionRepository ] ) ,
42
- MikroOrmModule . forFeature ( [ ZapierWebhookSubscriptionRepository ] )
41
+ TypeOrmModule . forFeature ( [ ZapierWebhookSubscription ] ) ,
42
+ MikroOrmModule . forFeature ( [ ZapierWebhookSubscription ] )
43
43
] ,
44
44
controllers : [ ZapierAuthorizationController , ZapierController , ZapierWebhookController ] ,
45
45
providers : [
46
- ZapierService ,
47
- ZapierWebhookService ,
48
- MikroOrmZapierWebhookSubscriptionRepository ,
49
- TypeOrmZapierWebhookSubscriptionRepository ,
50
- ...CommandHandlers ,
51
- ...QueryHandlers
52
- ] ,
46
+ ZapierService ,
47
+ ZapierWebhookService ,
48
+ MikroOrmZapierWebhookSubscriptionRepository ,
49
+ TypeOrmZapierWebhookSubscriptionRepository ,
50
+ ...CommandHandlers ,
51
+ ...QueryHandlers
52
+ ] ,
53
53
exports : [ ZapierService , ZapierWebhookService , TimerModule ]
54
54
} )
55
- export class ZapierModule { }
55
+ export class ZapierModule { }
0 commit comments