File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ let sendRoomWebHook = async function (contact, room) {
125
125
return await _send ( token ) ;
126
126
} ;
127
127
128
- fastify . register ( require ( "fastify- rate-limit" ) , {
128
+ fastify . register ( require ( "@ fastify/ rate-limit" ) , {
129
129
max : 100 ,
130
130
global : false ,
131
131
} ) ;
@@ -244,7 +244,7 @@ fastify.post(
244
244
245
245
let start = async function ( ) {
246
246
await bot . start ( ) ;
247
- await fastify . listen ( process . env . PORT || 3000 ) ;
247
+ await fastify . listen ( { port : process . env . PORT || 3000 } ) ;
248
248
return console . log ( "listen " + process . env . PORT || 3000 ) ;
249
249
} ;
250
250
Original file line number Diff line number Diff line change 10
10
"license" : " ISC" ,
11
11
"dependencies" : {
12
12
"dotenv" : " ^10.0.0" ,
13
- "fastify" : " ^3.19.1 " ,
14
- "fastify- rate-limit" : " ^5.5 .0" ,
13
+ "fastify" : " ^4.7.0 " ,
14
+ "@ fastify/ rate-limit" : " ^7.6 .0" ,
15
15
"file-box" : " ^0.16.8" ,
16
16
"hot-import" : " ^0.2.14" ,
17
17
"lodash" : " ^4.17.21" ,
You can’t perform that action at this time.
0 commit comments