Skip to content

Commit 773276f

Browse files
sairanjitKambleSahil3
authored andcommitted
refactor: merge nats-interceptor and responses lib into common (#1165)
* refactor: merge nats-interceptor into common Signed-off-by: Sai Ranjit Tummalapalli <[email protected]> * refactor: merge repsonses lib into common Signed-off-by: Sai Ranjit Tummalapalli <[email protected]> * refactor: create common function to handle errors Signed-off-by: Sai Ranjit Tummalapalli <[email protected]> * chore: add todo Signed-off-by: Sai Ranjit Tummalapalli <[email protected]> * fix: remove missed image service Signed-off-by: Sai Ranjit Tummalapalli <[email protected]> * fix: create separate function to handle common error Signed-off-by: Sai Ranjit Tummalapalli <[email protected]> * chore: add comment for the purpose of the functions Signed-off-by: Sai Ranjit Tummalapalli <[email protected]> * chore: update function comments Signed-off-by: Sai Ranjit Tummalapalli <[email protected]> --------- Signed-off-by: Sai Ranjit Tummalapalli <[email protected]> Signed-off-by: Sahil Kamble <[email protected]>
1 parent 4ceb01b commit 773276f

File tree

17 files changed

+436
-896
lines changed

17 files changed

+436
-896
lines changed

apps/api-gateway/src/main.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { getNatsOptions } from '@credebl/common/nats.config';
1313
import helmet from 'helmet';
1414
import { CommonConstants } from '@credebl/common/common.constant';
1515
import NestjsLoggerServiceAdapter from '@credebl/logger/nestjsLoggerServiceAdapter';
16-
import { NatsInterceptor } from '../../../libs/interceptors/nats.interceptor';
16+
import { NatsInterceptor } from '@credebl/common';
1717
dotenv.config();
1818

1919
async function bootstrap(): Promise<void> {
@@ -58,10 +58,10 @@ async function bootstrap(): Promise<void> {
5858
.addServer(`${process.env.API_GATEWAY_PROTOCOL}://${process.env.API_GATEWAY_HOST}`)
5959
.build();
6060

61-
app.enableVersioning({
62-
type: VersioningType.URI,
63-
defaultVersion: ['1']
64-
});
61+
app.enableVersioning({
62+
type: VersioningType.URI,
63+
defaultVersion: ['1']
64+
});
6565

6666
const document = SwaggerModule.createDocument(app, options);
6767
SwaggerModule.setup('api', app, document);

apps/api-gateway/src/organization/organization.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ import { NATSClient } from '@credebl/common/NATSClient';
2424
])
2525
],
2626
controllers: [OrganizationController],
27-
providers: [OrganizationService, CommonService, ImageServiceService, AwsService, NATSClient]
27+
providers: [OrganizationService, CommonService, AwsService, NATSClient]
2828
})
2929
export class OrganizationModule {}

apps/api-gateway/src/utilities/utilities.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ import { NATSClient } from '@credebl/common/NATSClient';
2424
])
2525
],
2626
controllers: [UtilitiesController],
27-
providers: [UtilitiesService, CommonService, ImageServiceService, NATSClient]
27+
providers: [UtilitiesService, CommonService, NATSClient]
2828
})
2929
export class UtilitiesModule {}

0 commit comments

Comments
 (0)