Skip to content

Commit a8b5e86

Browse files
committed
style: format throttle decorator for better readability
1 parent 87ff3d6 commit a8b5e86

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/backend/src/interface/http/controllers/auth.controller.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ export class AuthController {
5959
@Post('login')
6060
@Public()
6161
@HttpCode(HttpStatus.OK)
62-
@Throttle({ default: { limit: Number(process.env.LOGIN_RATE_LIMIT ?? '5'), ttl: 60000 } })
62+
@Throttle({
63+
default: { limit: Number(process.env.LOGIN_RATE_LIMIT ?? '5'), ttl: 60000 },
64+
})
6365
async login(
6466
@Body(new ZodValidationPipe(LoginInputSchema)) body: LoginInput,
6567
@Res({ passthrough: true }) res: Response,

0 commit comments

Comments
 (0)