Skip to content

Commit 38db04b

Browse files
committed
fix: added improvements and bugfixes
1 parent fee1c59 commit 38db04b

File tree

7 files changed

+7
-9
lines changed

7 files changed

+7
-9
lines changed

src/app/app.constant.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
export const PUBLIC_ROUTE_KEY = 'isPublic';
2-
export const RESPONSE_SERIALIZATION_META_KEY = 'responseSerializationMetaKey';
3-
export const RESPONSE_MESSAGE_META_KEY = 'responseMessageMetaKey';
1+
export const PUBLIC_ROUTE_KEY = 'Public';

src/config/app.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { registerAs } from '@nestjs/config';
22

33
export default registerAs(
44
'app',
5-
(): Record<string, any> => ({
5+
(): Record<string, unknown> => ({
66
name: process.env.APP_NAME ?? 'auth',
77
env: process.env.APP_ENV ?? 'development',
88
versioning: {

src/config/doc.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { registerAs } from '@nestjs/config';
22

33
export default registerAs(
44
'doc',
5-
(): Record<string, any> => ({
5+
(): Record<string, unknown> => ({
66
name: `${process.env.APP_NAME} APIs Specification`,
77
description: `${process.env.APP_NAME} APIs Description`,
88
version: '1.0',

src/config/rmq.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { registerAs } from '@nestjs/config';
22

33
export default registerAs(
44
'rmq',
5-
(): Record<string, any> => ({
5+
(): Record<string, unknown> => ({
66
uri: process.env.RABBITMQ_URL,
77
auth: process.env.RABBITMQ_AUTH_QUEUE,
88
}),

src/guards/jwt.access.guard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class AuthJwtAccessGuard extends AuthGuard('jwt-access') {
99
super();
1010
}
1111

12-
handleRequest<TUser = any | boolean>(
12+
handleRequest<TUser = unknown | boolean>(
1313
err: Error,
1414
user: TUser,
1515
_info: Error,

src/guards/jwt.refresh.guard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class AuthJwtRefreshGuard extends AuthGuard('jwt-refresh') {
77
super();
88
}
99

10-
handleRequest<TUser = any | boolean>(
10+
handleRequest<TUser = unknown | boolean>(
1111
err: Error,
1212
user: TUser,
1313
_info: Error,

src/interceptors/response.interceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class ResponseInterceptor implements NestInterceptor {
2020
const response = ctx.getResponse();
2121
const statusCode: number = response.statusCode;
2222
const responseBody = await firstValueFrom(next.handle());
23-
const message = await this.i18n.t(`response.${statusCode}`);
23+
const message = await this.i18n.t(`success.${statusCode}`);
2424

2525
return of({
2626
statusCode,

0 commit comments

Comments
 (0)