We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5964fbd + 1b6a2d5 commit 35c4b45Copy full SHA for 35c4b45
src/configs/request.config.ts
@@ -1,6 +1,7 @@
1
import { registerAs } from '@nestjs/config';
2
import bytes from 'bytes';
3
import ms from 'ms';
4
+import { seconds } from 'src/common/helper/constants/helper.function.constant';
5
import { ENUM_REQUEST_METHOD } from 'src/common/request/constants/request.enum.constant';
6
7
export default registerAs(
@@ -87,7 +88,7 @@ export default registerAs(
87
88
],
89
},
90
throttle: {
- ttl: ms('500'), // 0.5 secs
91
+ ttl: seconds('500'), // 0.5 secs
92
limit: 10, // max request per reset time
93
94
})
0 commit comments