Skip to content

Commit 633cd12

Browse files
authoredDec 2, 2022
update the fastify usage
to compatible with the new version
1 parent b044f07 commit 633cd12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎bot.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ let sendRoomWebHook = async function (contact, room) {
125125
return await _send(token);
126126
};
127127

128-
fastify.register(require("fastify-rate-limit"), {
128+
fastify.register(require("@fastify/rate-limit"), {
129129
max: 100,
130130
global: false,
131131
});
@@ -244,7 +244,7 @@ fastify.post(
244244

245245
let start = async function () {
246246
await bot.start();
247-
await fastify.listen(process.env.PORT || 3000);
247+
await fastify.listen({port : process.env.PORT || 3000});
248248
return console.log("listen " + process.env.PORT || 3000);
249249
};
250250

0 commit comments

Comments
 (0)
Please sign in to comment.